Skip to content

Commit 081a102

Browse files
author
Antoine
committed
Refactor test coverage commands to ensure proper data file usage allowing to parallel test run
1 parent f3b9424 commit 081a102

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ dist/%-$(VERSION).tar.gz: %
1717
python build_package.py --version $(VERSION) --sdist --outdir dist $<
1818

1919
tests/%: % #with pytest
20-
-coverage run --branch -m pytest --tb=short --disable-warnings --junitxml=tests_reports/$*/report.xml $<
21-
@coverage report -m
22-
@coverage html -d tests_reports/$*/coverage
23-
@rm .coverage
20+
-@coverage run --data-file $<.coverage --branch -m pytest --tb=short --disable-warnings --junitxml=tests_reports/$*/report.xml $<
21+
@coverage html -d tests_reports/$*/coverage --data-file $<.coverage
22+
@coverage report -m --data-file $<.coverage
23+
@rm $<.coverage
2424

2525
tests: $(addprefix tests/,$(MODULES))
2626

0 commit comments

Comments
 (0)