Ver Fonte

Switch to nosetests for tests, add coverage make target.

Jelmer Vernooij há 16 anos atrás
pai
commit
62fbe7301f
1 ficheiros alterados com 4 adições e 1 exclusões
  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