Add Makefile and requirements.txt for easier testing

This commit is contained in:
Markus Opolka 2020-06-19 12:14:38 +02:00
parent 4c89a8a93d
commit b9a583f281
2 changed files with 11 additions and 0 deletions

9
makefile Normal file
View File

@ -0,0 +1,9 @@
.PHONY: lint test coverage
lint:
python3 -m pylint check_http_json.py
test:
python3 -m unittest discover
coverage:
python3 -m coverage run -m unittest discover
python3 -m coverage report -m --include check_http_json.py

2
test/requirements.txt Normal file
View File

@ -0,0 +1,2 @@
coverage==5.0.3
pylint==2.4.4