Skip to content

Commit a65a7ad

Browse files
Update tox.ini
1 parent a9f2c0d commit a65a7ad

1 file changed

Lines changed: 10 additions & 21 deletions

File tree

tox.ini

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,13 @@ deps =
1212
-rrequirements.txt
1313
-rrequirements.dev.txt
1414

15+
commands =
16+
{envpython} -m pytest
1517

1618
[testenv:unit]
1719
description = Running UNIT tests in the corresponding environment
18-
#commands =
19-
# {envpython} -m pytest tests/unit
2020
commands =
21-
{envpython} -m coverage run -m pytest tests/unit \
22-
--cov=ted_sws \
23-
--cov-report=html \
24-
--cov-report=term \
25-
--cov-report=xml \
26-
--junitxml=junit_report.xml \
27-
-r a \
28-
-q \
29-
-v -s \
30-
--gherkin-terminal-reporter \
31-
--disable-pytest-warnings
32-
{envpython} -m coverage xml
33-
21+
{envpython} -m pytest tests/unit
3422

3523
[testenv:features]
3624
commands =
@@ -47,16 +35,16 @@ commands =
4735
basepython =
4836
python3.8
4937
commands =
50-
coverage run -m pytest
51-
# --cov-report term \
52-
# --cov-report html \
53-
# --cov
54-
38+
{envpython} -m pytest \
39+
--cov-report term \
40+
--cov-report html \
41+
--cov
5542

5643
[coverage:run]
5744
relative_files = True
5845
source = ted_sws/
59-
branch = True
46+
branch = False
47+
6048

6149
[pytest]
6250
log_cli = true
@@ -69,6 +57,7 @@ addopts =
6957
--cov-report=html
7058
--cov-report=term
7159
--cov-report=xml
60+
--cov-config=tox.ini
7261
--junitxml=junit_report.xml
7362
-r a
7463
-q

0 commit comments

Comments
 (0)