Skip to content

Commit 6b0a8d8

Browse files
committed
Another tweak to tox.ini and .coveragerc, fingers crossed ...
1 parent 295b107 commit 6b0a8d8

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# .coveragerc to control coverage.py
22
[run]
33
# Source
4-
source = cmd.py,tests
4+
source = cmd2.py
55
# (boolean, default False): whether to measure branch coverage in addition to statement coverage.
66
branch = False
77

tox.ini

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ testpaths = tests
66

77
[testenv]
88
passenv = CI TRAVIS TRAVIS_* APPVEYOR*
9+
setenv =
10+
PYTHONPATH={toxinidir}
911

1012
[testenv:py27]
1113
deps =
@@ -18,7 +20,7 @@ deps =
1820
pytest-xdist
1921
six
2022
commands =
21-
py.test -v --cov=cmd2 -nauto --cov-report=term-missing tests
23+
py.test {posargs: -n 2} --cov=cmd2 --cov-report=term-missing
2224
codecov
2325

2426
[testenv:py33]
@@ -29,7 +31,7 @@ deps =
2931
pytest
3032
pytest-xdist
3133
six
32-
commands = py.test -v -nauto
34+
commands = py.test -v -n2
3335

3436
[testenv:py34]
3537
deps =
@@ -39,7 +41,7 @@ deps =
3941
pytest
4042
pytest-xdist
4143
six
42-
commands = py.test -v -nauto
44+
commands = py.test -v -n2
4345

4446
[testenv:py35]
4547
deps =
@@ -49,7 +51,7 @@ deps =
4951
pytest
5052
pytest-xdist
5153
six
52-
commands = py.test -v -nauto
54+
commands = py.test -v -n2
5355

5456
[testenv:py36]
5557
deps =
@@ -62,7 +64,7 @@ deps =
6264
pytest-xdist
6365
six
6466
commands =
65-
py.test -v --cov=cmd2 -nauto --cov-report=term-missing tests
67+
py.test {posargs: -n 2} --cov=cmd2 --cov-report=term-missing
6668
codecov
6769

6870
[testenv:py36-win]
@@ -73,7 +75,7 @@ deps =
7375
pytest
7476
pytest-xdist
7577
six
76-
commands = py.test -v -nauto
78+
commands = py.test -v -n2
7779

7880
[testenv:py37]
7981
deps =
@@ -83,5 +85,5 @@ deps =
8385
pytest
8486
pytest-xdist
8587
six
86-
commands = py.test -v -nauto
88+
commands = py.test -v -n2
8789

0 commit comments

Comments
 (0)