Skip to content

Commit

Permalink
fix: use coverage directly instead of pytest-cov (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
12rambau authored Sep 7, 2023
1 parent c1a88ac commit 86c4603
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ dev = [
]
test = [
"pytest",
"coverage",
"pytest-sugar",
"pytest-cov",
"pytest-deadfixtures"
]
doc = [
Expand Down

0 comments on commit 86c4603

Please sign in to comment.