Browse Source

Switch to nosetests for tests, add coverage make target.

Jelmer Vernooij 16 years ago
parent
commit
649857b7ab
1 changed files with 4 additions and 1 deletions
  1. 4 1
      Makefile

+ 4 - 1
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