Skip to content

Commit

Permalink
chore(tests): use coverage directly to run tests
Browse files Browse the repository at this point in the history
no need for the pytest-cov wrapper library
  • Loading branch information
thekaveman committed Sep 21, 2023
1 parent 8575cfb commit 59f2a1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ dev = [
"pre-commit",
]
test = [
"coverage",
"pytest",
"pytest-cov",
"pytest-django",
"pytest-mock",
"pytest-socket",
Expand Down
4 changes: 3 additions & 1 deletion tests/pytest/run.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/usr/bin/env bash
set -eu

pytest --cov=benefits --cov-branch --import-mode=importlib --no-migrations
# run normal pytests
coverage run -m pytest --no-migrations

# clean out old coverage results
rm -rf benefits/static/coverage

coverage html --directory benefits/static/coverage

0 comments on commit 59f2a1f

Please sign in to comment.