Skip to content

Commit bacddc7

Browse files
committed
chore: make the junit xml file a bit more file name friendly and add a needed cov-append tag to the tests_python nox session
1 parent fe15ddb commit bacddc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

{{cookiecutter.project_name}}/noxfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,12 @@ def tests_python(session: Session) -> None:
155155
session.log(f"Running test suite with py{session.python}.")
156156
test_results_dir = Path("test-results")
157157
test_results_dir.mkdir(parents=True, exist_ok=True)
158-
junitxml_file = test_results_dir / f"test-results-py{session.python}.xml"
158+
junitxml_file = test_results_dir / f"test-results-py{session.python.replace('.', '')}.xml"
159159

160160
session.run(
161161
"pytest",
162162
"--cov={}".format(PACKAGE_NAME),
163+
"--cov-append",
163164
"--cov-report=term",
164165
"--cov-report=xml",
165166
f"--junitxml={junitxml_file}",

0 commit comments

Comments
 (0)