From 17b7e74db280373aca46df5fee32f53a7c82a65d Mon Sep 17 00:00:00 2001 From: getzze Date: Tue, 10 Sep 2024 21:26:48 +0100 Subject: [PATCH] Add tox command to test full coverage of core files (#1166) --- tox.ini | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tox.ini b/tox.ini index 70222da3..32f48887 100644 --- a/tox.ini +++ b/tox.ini @@ -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 =