Browse code

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

Otherwise the coverage is cumulative over multiple runs and can be misleading.

Adrian Likins authored on 2016/09/23 05:35:18
Showing 1 changed files
... ...
@@ -100,10 +100,10 @@ NOSETESTS3 ?= nosetests-3.5
100 100
 all: clean python
101 101
 
102 102
 tests:
103
-	PYTHONPATH=./lib $(NOSETESTS) -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches
103
+	PYTHONPATH=./lib $(NOSETESTS) -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches --cover-erase
104 104
 
105 105
 tests-py3:
106
-	PYTHONPATH=./lib $(NOSETESTS3) -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches
106
+	PYTHONPATH=./lib $(NOSETESTS3) -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches --cover-erase
107 107
 
108 108
 integration:
109 109
 	test/utils/shippable/integration.sh