diff --git a/.coveragerc b/.coveragerc index 3cdeb7d2..ad4f0cc9 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,3 +1,9 @@ -[coverage:run] +[run] # needed to not have absolute path in coverage.xml -relative_files = True \ No newline at end of file +relative_files = True + +[report] +fail_under = 80 + +[xml] +output = coverage.xml diff --git a/tests/integration/test_web_client.py b/tests/integration/test_web_client.py index 28850a6a..5b245d8b 100644 --- a/tests/integration/test_web_client.py +++ b/tests/integration/test_web_client.py @@ -32,7 +32,6 @@ from antares.model.st_storage import STStorageGroup, STStorageMatrixName, STStorageProperties from antares.model.study import create_study_api from antares.model.thermal import ThermalClusterGroup, ThermalClusterProperties - from integration.antares_web_desktop import AntaresWebDesktop diff --git a/tox.ini b/tox.ini index 6398bed4..5bbae3f2 100644 --- a/tox.ini +++ b/tox.ini @@ -1,16 +1,17 @@ [tox] env_list = - py3.{9,10,11,12}-test + py3.{9,10,11,12,13}-test lint [testenv] deps = -r requirements-dev.txt -[testenv:py3.{9,10,11,12}-test] -description = run the tests with pytest +[testenv:py3.{9,10,11,12,13}-test] +description = run the tests with pytest and coverage commands = - pytest tests/antares {posargs} + py3.{9,10,11,13}-test: pytest tests/antares {posargs} + py3.12-test: pytest tests/antares --cov=src/antares --cov-report=xml [testenv:lint] description = linting with ruff @@ -21,4 +22,3 @@ commands = ruff check --fix src/ tests/ {posargs} ruff format src/ tests/ {posargs} mypy {posargs} -