Skip to content

Commit

Permalink
#167: Add coverage nox session
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Jan 18, 2021
1 parent dd223c5 commit a938083
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,10 @@ def tests(session):
args = session.posargs
session.run("poetry", "install", external=True)
session.run("pytest", *args)


@nox.session(reuse_venv=True)
def coverage(session):
install_with_constraints(session, "coverage[toml]", "codecov")
session.run("coverage", "xml", "--fail-under=0")
session.run("codecov", *session.posargs)

0 comments on commit a938083

Please sign in to comment.