Skip to content

Commit becb962

Browse files
Update tox.ini
1 parent 4cae1cd commit becb962

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

tox.ini

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@ envlist =
99
description = Running tests in the corresponding environment
1010
passenv = *
1111
deps =
12+
coverage
1213
-rrequirements.txt
1314
-rrequirements.dev.txt
1415

1516
commands =
1617
{envpython} -m pytest
1718

19+
20+
1821
[testenv:unit]
1922
description = Running UNIT tests in the corresponding environment
2023
commands =
@@ -35,10 +38,16 @@ commands =
3538
basepython =
3639
python3.8
3740
commands =
38-
{envpython} -m pytest \
39-
--cov-report term \
40-
--cov-report html \
41-
--cov
41+
coverage run -m pytest
42+
# --cov-report term \
43+
# --cov-report html \
44+
# --cov
45+
coverage xml
46+
47+
[coverage:run]
48+
relative_files = True
49+
source = ted_sws/
50+
branch = True
4251

4352
[pytest]
4453
log_cli = true

0 commit comments

Comments
 (0)