Skip to content

Commit fdfab8a

Browse files
committed
feat: add a terminal coverage report to the test-python nox session
1 parent b6660dd commit fdfab8a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

{{cookiecutter.project_name}}/noxfile.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,14 @@ def tests_python(session: Session) -> None:
157157
test_results_dir.mkdir(parents=True, exist_ok=True)
158158
junitxml_file = test_results_dir / f"test-results-py{session.python}.xml"
159159

160-
session.run("pytest", "--cov={}".format(PACKAGE_NAME), "--cov-report=xml", f"--junitxml={junitxml_file}", "tests/")
160+
session.run(
161+
"pytest",
162+
"--cov={}".format(PACKAGE_NAME),
163+
"--cov-report=term",
164+
"--cov-report=xml",
165+
f"--junitxml={junitxml_file}",
166+
"tests/"
167+
)
161168

162169

163170
{% if cookiecutter.add_rust_extension == 'y' -%}

0 commit comments

Comments
 (0)