Switch to nosetests for tests, add coverage make target.
[jelmer/dulwich-libgit2.git] / Makefile
index 14238e32901e6708e9141a105e1d9f8a90059d4a..d88077b816d10bc9f72af3e64dbab61659bc6656 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 PYTHON = python
 SETUP = $(PYTHON) setup.py
 PYDOCTOR ?= pydoctor
-TESTRUNNER = $(shell which trial)
+TESTRUNNER = $(shell which nosetests)
 
 all: build 
 
@@ -26,3 +26,6 @@ check-noextensions:: clean
 clean::
        $(SETUP) clean --all
        rm -f dulwich/*.so
+
+coverage:: build
+       PYTHONPATH=. $(PYTHON) $(TESTRUNNER) --cover-package=dulwich --with-coverage --cover-erase --cover-inclusive dulwich