Skip to content

Commit

Permalink
Add tox command to test full coverage of core files (#1166)
Browse files Browse the repository at this point in the history
  • Loading branch information
getzze committed Sep 10, 2024
1 parent 926f870 commit 17b7e74
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ set_env =
COVERAGE_PROCESS_START = pyproject.toml
commands = pytest --cov --cov-report=term-missing:skip-covered {posargs:-n auto}

[testenv:coverage-core]
usedevelop = true
deps = coverage[toml]>=7
set_env =
COVERAGE_PROCESS_START = pyproject.toml
commands =
pytest --ignore=tests/refiners --ignore=tests/providers --cov --cov-report= --cov-fail-under=0 {posargs:-n auto}
coverage report \
--omit='subliminal/cli.py,subliminal/converters/*,subliminal/providers/*,subliminal/refiners/*' \
--skip-covered --fail-under=100

[testenv:pre-commit]
description =
Expand Down

0 comments on commit 17b7e74

Please sign in to comment.