diff options
author | Stefan Kögl <stefan@skoegl.net> | 2013-07-08 11:36:42 +0200 |
---|---|---|
committer | Stefan Kögl <stefan@skoegl.net> | 2013-07-08 11:36:42 +0200 |
commit | 4ed55a3fb5e85ccf95ffa0f505c72af5b4bb447d (patch) | |
tree | c051c21b10d9260846d659602035d8af525fff42 /makefile | |
parent | fe29c9e6cfa8ea3833ef464438f9a9c2346b5203 (diff) | |
download | python-json-patch-4ed55a3fb5e85ccf95ffa0f505c72af5b4bb447d.tar.gz |
rework coverage calculation for coveralls.io
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..01cef8a --- /dev/null +++ b/makefile @@ -0,0 +1,17 @@ + +help: + @echo "jsonpatch" + @echo "Makefile targets" + @echo " - test: run tests" + @echo " - coverage: run tests with coverage" + @echo + @echo "To install jsonpatch, type" + @echo " python setup.py install" + @echo + +test: + python tests.py + +coverage: + coverage run --source=jsonpatch tests.py + coverage report -m |