mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00: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:
4
Makefile
4
Makefile
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user