forked from github/pelican
Show missing line numbers via invoke coverage
Also includes a change that causes this command to return a failing status when coverage drops below its current value of 74.8%.
This commit is contained in:
parent
b77bb690e2
commit
fd955ba054
1 changed files with 5 additions and 1 deletions
6
tasks.py
6
tasks.py
|
|
@ -47,7 +47,11 @@ def tests(c):
|
||||||
@task
|
@task
|
||||||
def coverage(c):
|
def coverage(c):
|
||||||
"""Generate code coverage of running the test suite."""
|
"""Generate code coverage of running the test suite."""
|
||||||
c.run(f"{VENV_BIN}/pytest --cov=pelican", pty=PTY)
|
c.run(
|
||||||
|
f"{VENV_BIN}/pytest --cov=pelican --cov-report term-missing "
|
||||||
|
"--cov-fail-under 74.8",
|
||||||
|
pty=PTY,
|
||||||
|
)
|
||||||
c.run(f"{VENV_BIN}/coverage html", pty=PTY)
|
c.run(f"{VENV_BIN}/coverage html", pty=PTY)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue