From faa346f16ba586e1c5e1030437cdae9061b79b46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20K=C3=B6gl?= Date: Sun, 7 Jul 2013 18:48:32 +0200 Subject: move coverage code from tests.py to makefile --- makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 makefile (limited to 'makefile') diff --git a/makefile b/makefile new file mode 100644 index 0000000..e0a2fcf --- /dev/null +++ b/makefile @@ -0,0 +1,17 @@ + +help: + @echo "jsonpointer" + @echo "Makefile targets" + @echo " - test: run tests" + @echo " - coverage: run tests with coverage" + @echo + @echo "To install jsonpointer, type" + @echo " python setup.py install" + @echo + +test: + python tests.py + +coverage: + coverage run --source=jsonpointer tests.py + coverage report -m -- cgit v1.2.1