diff options
| author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-07-02 21:48:57 -0400 |
|---|---|---|
| committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-07-02 21:48:57 -0400 |
| commit | 6b0a8d82db3a848d5316be6de2fb3fa2127a046a (patch) | |
| tree | ccd34f0ee84f680e85531f4852730fa6d4c30b33 | |
| parent | 295b107107dc0054b25c07ab01a47cf8603483d7 (diff) | |
| download | cmd2-git-6b0a8d82db3a848d5316be6de2fb3fa2127a046a.tar.gz | |
Another tweak to tox.ini and .coveragerc, fingers crossed ...
| -rw-r--r-- | .coveragerc | 2 | ||||
| -rw-r--r-- | tox.ini | 16 |
2 files changed, 10 insertions, 8 deletions
diff --git a/.coveragerc b/.coveragerc index 9f851866..a50fe0e7 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,7 +1,7 @@ # .coveragerc to control coverage.py [run] # Source -source = cmd.py,tests +source = cmd2.py # (boolean, default False): whether to measure branch coverage in addition to statement coverage. branch = False @@ -6,6 +6,8 @@ testpaths = tests [testenv] passenv = CI TRAVIS TRAVIS_* APPVEYOR* +setenv = + PYTHONPATH={toxinidir} [testenv:py27] deps = @@ -18,7 +20,7 @@ deps = pytest-xdist six commands = - py.test -v --cov=cmd2 -nauto --cov-report=term-missing tests + py.test {posargs: -n 2} --cov=cmd2 --cov-report=term-missing codecov [testenv:py33] @@ -29,7 +31,7 @@ deps = pytest pytest-xdist six -commands = py.test -v -nauto +commands = py.test -v -n2 [testenv:py34] deps = @@ -39,7 +41,7 @@ deps = pytest pytest-xdist six -commands = py.test -v -nauto +commands = py.test -v -n2 [testenv:py35] deps = @@ -49,7 +51,7 @@ deps = pytest pytest-xdist six -commands = py.test -v -nauto +commands = py.test -v -n2 [testenv:py36] deps = @@ -62,7 +64,7 @@ deps = pytest-xdist six commands = - py.test -v --cov=cmd2 -nauto --cov-report=term-missing tests + py.test {posargs: -n 2} --cov=cmd2 --cov-report=term-missing codecov [testenv:py36-win] @@ -73,7 +75,7 @@ deps = pytest pytest-xdist six -commands = py.test -v -nauto +commands = py.test -v -n2 [testenv:py37] deps = @@ -83,5 +85,5 @@ deps = pytest pytest-xdist six -commands = py.test -v -nauto +commands = py.test -v -n2 |
