export COV_CORE_DATAFILE := .coverage.eager
# For clean
-COVERAGE_STUFF := $(COVERAGE_STUFF) .coverage.*
+COVERAGE_DATA := .coverage .coverage.*
+COVERAGE_STUFF := $(COVERAGE_STUFF) $(COVERAGE_DATA)
+
+# Because we're testing fixtures we need to accumulate
+# coverage data with --cov-append for pytest. But this
+# leaves coverage data files laying about which interfere
+# with subsequent runs. Remove the old data before
+# running pytest again.
+
+.PHONY: rm_coverage_data
+rm_coverage_data:
+ rm -f $(COVERAGE_DATA)
+
+check: rm_coverage_data
.. #End Of Copyright Marker#
.. Bugs: (Due to fixture testing)
- "make check" picks up tox tests
"make run_tests" leaves .coverage.eager.* files about
Probably we need to get rid of the .coverage files in both cases.
(removing .coverage fixes "make check" pickup of tox dirs)