From bcdbb1bea93646e619b9549e7bd2a8d7981862ea Mon Sep 17 00:00:00 2001 From: Spayralbe Date: Thu, 4 Apr 2024 19:40:14 +0200 Subject: [PATCH] Remove coverage session as it's already part of the pytest call --- noxfile.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/noxfile.py b/noxfile.py index 2138fee..e132e23 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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")