From 95dd8cc2c7e6a5e20bb96c4eef7565f09668ce4c Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Thu, 22 Sep 2016 16:35:18 -0400 Subject: [PATCH] Add '--cover-erase' to 'make tests' cli (#17708) Otherwise the coverage is cumulative over multiple runs and can be misleading. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6744b07590..8628ea3537 100644 --- a/Makefile +++ b/Makefile @@ -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