test: Add xml output to invoke test execution

This commit is contained in:
Jon Grace-Cox
2025-01-11 17:54:19 -05:00
parent af9d06f5b0
commit 25cdd6912b

View File

@@ -38,7 +38,8 @@ def local(c):
retval = 0
try:
subprocess.run(
f"{sys.executable} -m pytest --doctest-modules --cov=anybadge --cov-report html:htmlcov anybadge tests",
f"{sys.executable} -m pytest --doctest-modules "
"--cov=anybadge --cov-report term --cov-report html:htmlcov --cov-report xml:coverage.xml anybadge tests",
shell=True,
)
except Exception as e: