Browse Source

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
tags/6.0
Sandro Tosi 10 years ago
parent
commit
4aff7459c3
1 changed files with 11 additions and 2 deletions
  1. +11
    -2
      Makefile

+ 11
- 2
Makefile View File

@@ -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
pylint --output-format=colorized bin/* reportbug/ checks/* test/ setup.py

Loading…
Cancel
Save