Skip to content

Commit

Permalink
Remove coverage session as it's already part of the pytest call
Browse files Browse the repository at this point in the history
  • Loading branch information
Spayralbe committed Apr 4, 2024
1 parent 1f729c0 commit bcdbb1b
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,9 @@

@nox.session(python=python)
def tests(session: nox.Session):
"""Run test suite."""
"""Run pytest + code coverage."""
session.run("poetry", "install", external=True)
session.run("pytest", "--cov=src")
session.notify("coverage")


@nox.session
def coverage(session: nox.Session):
"""Generate pytest code coverage report."""
session.run("coverage", "report", "--show-missing")
session.run("pytest", "--cov-report", "term-missing", "--cov=src")


@nox.session(reuse_venv=True, name="format")
Expand Down

0 comments on commit bcdbb1b

Please sign in to comment.