From b9a583f28179098873b44f564011b4955db16785 Mon Sep 17 00:00:00 2001 From: Markus Opolka Date: Fri, 19 Jun 2020 12:14:38 +0200 Subject: [PATCH] Add Makefile and requirements.txt for easier testing --- makefile | 9 +++++++++ test/requirements.txt | 2 ++ 2 files changed, 11 insertions(+) create mode 100644 makefile create mode 100644 test/requirements.txt diff --git a/makefile b/makefile new file mode 100644 index 0000000..3f3e98b --- /dev/null +++ b/makefile @@ -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 diff --git a/test/requirements.txt b/test/requirements.txt new file mode 100644 index 0000000..6467d27 --- /dev/null +++ b/test/requirements.txt @@ -0,0 +1,2 @@ +coverage==5.0.3 +pylint==2.4.4