Adding args to coverage report
command
#1487
Answered
by
jborbely
dralshehri
asked this question in
Q&A
-
Is it possible to add arguments to I'm trying to use a different format for the coverage summary on GitHub Actions, such as running |
Beta Was this translation helpful? Give feedback.
Answered by
jborbely
May 14, 2024
Replies: 1 comment 1 reply
-
If a feature similar to #1477 is approved, then yes, you could use [envs.hatch-test]
reporting-args = ["--format=markdown"] In the meantime, you could either add the following to your [tool.coverage.report]
format = "markdown" or if you use a [report]
format = markdown or redefine all of the [envs.hatch-test.scripts]
run = "pytest{env:HATCH_TEST_ARGS:} {args}"
run-cov = "coverage run -m pytest{env:HATCH_TEST_ARGS:} {args}"
cov-combine = "coverage combine"
cov-report = "coverage report --format=markdown" |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dralshehri
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If a feature similar to #1477 is approved, then yes, you could use
In the meantime, you could either add the following to your
pyproject.toml
fileor if you use a
.coveragerc
file, the equivalent isor redefine all of the
hatch-test
scripts