Skip to content

Commit

Permalink
Fix: Pytest did not run coverage
Browse files Browse the repository at this point in the history
Solution: Add pytest-cov and update related test dependencies
  • Loading branch information
hoh committed Feb 22, 2024
1 parent b0f49ea commit ad25ca2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ check = "aleph-vm controller run {args:--help}"

[tool.hatch.envs.testing]
dependencies = [
"coverage[toml]==7.3.2",
"pytest==7.4.2",
"pytest-mock==3.11.1",
"pytest-asyncio==0.21.1",
"pytest==8.0.1",
"pytest-cov==4.1.0",
"pytest-mock==3.12.0",
"pytest-asyncio==0.23.5",
]
[tool.hatch.envs.testing.scripts]
test = "pytest {args:tests}"
test-cov = "coverage run -m pytest {args:tests}"
test-cov = "pytest --cov {args:tests}"
cov-report = [
"- coverage combine",
"coverage report",
Expand Down

0 comments on commit ad25ca2

Please sign in to comment.