1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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 all: clean python
tests: 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: 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: integration:
test/utils/shippable/integration.sh test/utils/shippable/integration.sh