Skip to content

Commit 975ca15

Browse files
[COVERAGE] Improved coverage reporting (- WIP #441 -)
Changes in file Makefile: * improved coverage reporting for just-test target
1 parent 1aa9f80 commit 975ca15

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,11 @@ just-test: cleanup MANIFEST.in test-reports ## Run all minimum acceptance tests
278278
$(QUIET)if [ -n "$$TESTS_USE_PYTEST" ]; then \
279279
$(PYTEST) $(COVERAGE_ARGS) || DO_FAIL="exit 2" ; \
280280
else \
281-
$(COVERAGE) run -p --source=multicast -m tests.run_selective || $(PYTHON) -m tests.run_selective || DO_FAIL="exit 2" ; \
282-
$(QUIET)$(COVERAGE) combine ./coverage_* 2>$(ERROR_LOG_PATH) || : ; \
283-
$(QUIET)$(COVERAGE) combine --append ./.coverage.* 2>$(ERROR_LOG_PATH) || : ; \
284-
$(QUIET)$(COVERAGE) report -m --include=multicast/* 2>$(ERROR_LOG_PATH) || : ; \
281+
$(COVERAGE) run -p --source=multicast -m tests.run_selective || DO_FAIL="exit 2" ; \
282+
$(WAIT) ; \
283+
$(COVERAGE) combine --keep --data-file=coverage_all ./.coverage.* 2>$(ERROR_LOG_PATH) || : ; \
284+
$(COVERAGE) combine --append ./coverage_* 2>$(ERROR_LOG_PATH) || : ; \
285+
$(COVERAGE) report -m --include=multicast/* 2>$(ERROR_LOG_PATH) || : ; \
285286
$(COVERAGE) xml -o test-reports/coverage.xml --include=multicast/* 2>$(ERROR_LOG_PATH) || : ; \
286287
fi
287288
$(QUIET)$(WAIT) ;

0 commit comments

Comments
 (0)