Add '--cover-erase' to 'make tests' cli (#17708)

Otherwise the coverage is cumulative over multiple runs and can be misleading.
This commit is contained in:
Adrian Likins 2016-09-22 16:35:18 -04:00 committed by Matt Clay
parent be1139317a
commit 95dd8cc2c7

View file

@ -100,10 +100,10 @@ NOSETESTS3 ?= nosetests-3.5
all: clean python
tests:
PYTHONPATH=./lib $(NOSETESTS) -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches
PYTHONPATH=./lib $(NOSETESTS) -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches --cover-erase
tests-py3:
PYTHONPATH=./lib $(NOSETESTS3) -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches
PYTHONPATH=./lib $(NOSETESTS3) -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches --cover-erase
integration:
test/utils/shippable/integration.sh