Delay checking size until it's actually used.
[jelmer/dulwich-libgit2.git] / Makefile
index 14238e32901e6708e9141a105e1d9f8a90059d4a..ec229b776eaf39517d47a8dabe2d64b7e8f49d53 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,9 @@ 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
+
+coverage-annotate: coverage
+       python-coverage -a -o /usr