2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 11:05:41 +00:00

fix coverage runner setting

This commit is contained in:
Matthias Mair
2024-04-04 23:10:41 +02:00
parent 3fe4f917c9
commit 703d7673b1

View File

@ -869,7 +869,9 @@ def test(
if coverage:
# Run tests within coverage environment, and generate report
c.run(f'coverage run {managePyPath()} {cmd}')
c.run(
f'cd {managePyDir()} && coverage run {managePyPath()} {cmd} && cp {managePyDir().joinpath(".coverage")} {localDir()}'
)
c.run('coverage xml -i')
else:
# Run simple test runner, without coverage