Skip to content

Commit 185b330

Browse files
author
juanbc
committed
now the coverage environment uses the other runs to collect the data
1 parent a675a54 commit 185b330

File tree

1 file changed

+26
-22
lines changed

1 file changed

+26
-22
lines changed

tox.ini

+26-22
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,6 @@ envlist =
1919
# ENVS
2020
# =============================================================================
2121

22-
23-
[testenv]
24-
deps =
25-
ipdb
26-
pytest
27-
pytest-ordering
28-
pyquery
29-
usedevelop = True
30-
commands =
31-
pytest tests/ {posargs}
32-
3322
[testenv:style]
3423
skip_install = True
3524
usedevelop = False
@@ -43,17 +32,6 @@ commands =
4332
flake8 tests/ skcriteria/ {posargs}
4433

4534

46-
[testenv:coverage]
47-
deps =
48-
{[testenv]deps} # Esto instala las mismas dependencias que [testenv]
49-
coverage
50-
pytest-cov
51-
commands =
52-
- coverage erase
53-
- pytest -q tests/ --cov=skcriteria --cov-append --cov-report= {posargs}
54-
coverage report --fail-under=100 -m
55-
56-
5735
[testenv:docstyle]
5836
skip_install = True
5937
deps =
@@ -105,3 +83,29 @@ deps =
10583
-r {toxinidir}/docs/requirements.txt
10684
commands =
10785
sphinx-build -W -b html -d {envtmpdir}/doctrees source {envtmpdir}/html
86+
87+
88+
[testenv]
89+
deps =
90+
ipdb
91+
pytest
92+
pytest-ordering
93+
pyquery
94+
pytest-cov
95+
usedevelop = True
96+
setenv =
97+
COVERAGE_FILE = {toxworkdir}/.coverage.{envname}
98+
commands =
99+
pytest tests/ --cov-report= --cov=skcriteria --cov-append -vm '' {posargs}
100+
101+
102+
[testenv:coverage]
103+
deps =
104+
{[testenv]deps} # Esto instala las mismas dependencias que [testenv]
105+
coverage
106+
setenv =
107+
COVERAGE_FILE = {toxworkdir}/.coverage
108+
depends = py39, py310, py311, py312, py313
109+
commands =
110+
coverage combine
111+
coverage report -m --fail-under 91

0 commit comments

Comments
 (0)