From 703d7673b1e7850c56d67f9c82c0f15cc0e36037 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Thu, 4 Apr 2024 23:10:41 +0200 Subject: [PATCH] fix coverage runner setting --- tasks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks.py b/tasks.py index 37052e2014..a90be7b598 100644 --- a/tasks.py +++ b/tasks.py @@ -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