Skip to content

Commit b914fd9

Browse files
committed
Generate coverage-python.lcov directly with pytest
1 parent 45a65d3 commit b914fd9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/gen_coverage.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ def run(
9696
"pyproject.toml",
9797
"--cov",
9898
"dpnp",
99-
"--cov-report",
100-
"term-missing",
99+
"--cov-report=lcov:coverage-python.lcov",
101100
"--pyargs",
102101
"dpnp",
103102
*pytest_opts.split(),
@@ -136,7 +135,7 @@ def find_objects():
136135
)
137136

138137
# export lcov
139-
with open("dpnp_pytest.lcov", "w") as fh:
138+
with open("coverage-cpp.lcov", "w") as fh:
140139
subprocess.check_call(
141140
[
142141
os.path.join(bin_llvm, "llvm-cov"),

0 commit comments

Comments
 (0)