[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 4.9-199-g136241e
Sandro Tosi
morph at debian.org
Sat Jul 30 19:59:38 UTC 2011
The following commit has been merged in the master branch:
commit 4aff7459c358fe65cc40a584f123bf53b5adf5e0
Author: Sandro Tosi <morph at debian.org>
Date: Fri Jun 24 00:05:35 2011 +0200
improvements to tests execution:
- stops at the first FAIL
- have a quick version of the test suite, removing all the network-accessing
tests and run the tests in parallel
- get the coverage information also in html format
diff --git a/Makefile b/Makefile
index 4fd4c6b..12b59ee 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
#! /usr/bin/make -f
-NOSETESTS = nosetests test -v
+NOSETESTS = nosetests test -v --stop
nosetests_cmd = $(NOSETESTS) ${NOSETESTS_OPTS}
.PHONY: checks
@@ -11,10 +11,19 @@ checks:
tests:
$(nosetests_cmd)
+# run tests not requiring network
+.PHONY: quicktests
+quicktests: NOSETESTS_OPTS += --processes=4 --attr='!network'
+quicktests:
+ $(nosetests_cmd)
+
coverage: NOSETESTS_OPTS += --with-coverage --cover-package=reportbug
coverage:
$(nosetests_cmd)
+coverhtml: NOSETESTS_OPTS += --cover-html
+coverhtml: coverage
+
codechecks: pep8 pyflakes pylint
pep8:
@@ -24,4 +33,4 @@ pyflakes:
pyflakes . bin/*
pylint:
- pylint --output-format=colorized bin/* reportbug/ checks/* test/ setup.py
\ No newline at end of file
+ pylint --output-format=colorized bin/* reportbug/ checks/* test/ setup.py
--
Reportbug - reports bugs in the Debian distribution
More information about the Reportbug-commits
mailing list