diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-07-02 19:28:23 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-07-02 19:28:23 -0400 |
commit | 9183df6c402fefc27a6593cfa00b6e4b5a14505c (patch) | |
tree | bf23b0143fab584036c905d647ca22c02f311efd /tox.ini | |
parent | 29578bee1857f9c672ab2bc60f47a1d02d889577 (diff) | |
download | cmd2-git-9183df6c402fefc27a6593cfa00b6e4b5a14505c.tar.gz |
Attempt to speedup unit tests
Now that we have a lot of unit tests and are running code coverage analysis,
our unit tests take a long time to run.
Changes include ...
tox:
- Install pytest-xdist to parallelize unit tests
- Only run code coverage analysis on Python 2.7 and 3.6
- Don't run examples/example.py anymore, just run the unit tests
TravisCI:
- Stop building on Python 3.7-dev since that won't be released for some time
AppVeyor:
- Stop building on Python 3.4 since that isn't as important and is covered by Travis
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 29 |
1 files changed, 25 insertions, 4 deletions
@@ -1,5 +1,5 @@ [tox] -envlist = py27,py34,py35,py36,jython,pypy +envlist = py27,py33,py34,py35,py36,py37,pypy [testenv] passenv = CI TRAVIS TRAVIS_* APPVEYOR* @@ -10,9 +10,30 @@ deps = pyperclip pytest pytest-cov + pytest-xdist six -commands= - py.test -v --cov=cmd2 --basetemp={envtmpdir} {posargs} - {envpython} examples/example.py --test examples/exampleSession.txt + +[testenv:py27] +commands = + codecov erase + py.test -v -n2 --cov=cmd2 --basetemp={envtmpdir} {posargs} codecov +[testenv:py33] +commands = py.test -v -n2 + +[testenv:py34] +commands = py.test -v -n2 + +[testenv:py35] +commands = py.test -v -n2 + +[testenv:py36] +commands = + codecov erase + py.test -v -n2 --cov=cmd2 --basetemp={envtmpdir} {posargs} + codecov + +[testenv:py37] +commands = py.test -v -n2 + |