From 86c46034ecd41015704a8bd56456553538639673 Mon Sep 17 00:00:00 2001 From: Rambaud Pierrick <12rambau@users.noreply.github.com> Date: Thu, 7 Sep 2023 15:40:34 +0000 Subject: [PATCH] fix: use coverage directly instead of pytest-cov (#26) --- noxfile.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/noxfile.py b/noxfile.py index 54deb3b..f113a4d 100644 --- a/noxfile.py +++ b/noxfile.py @@ -20,7 +20,7 @@ def test(session): """Run all the test using the environment variable of the running machine.""" session.install(".[test]") test_files = session.posargs or ["tests"] - session.run("pytest", "--color=yes", "--cov", "--cov-report=xml", *test_files) + session.run("coverage", "run", "-m", "pytest", "--color=yes", *test_files) @nox.session(reuse_venv=True, name="dead-fixtures") diff --git a/pyproject.toml b/pyproject.toml index f6cd0bf..90b98bb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,8 +48,8 @@ dev = [ ] test = [ "pytest", + "coverage", "pytest-sugar", - "pytest-cov", "pytest-deadfixtures" ] doc = [