Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# .coveragerc to control coverage.py
[run]
# Source
source = cmd2.py
# (boolean, default False): whether to measure branch coverage in addition to statement coverage.
branch = False

Expand Down
11 changes: 9 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
[tox]
envlist = py27,py33,py34,py35,py36,py36-winpy37,pypy

[pytest]
testpaths = tests

[testenv]
passenv = CI TRAVIS TRAVIS_* APPVEYOR*
setenv =
PYTHONPATH={toxinidir}

[testenv:py27]
deps =
Expand All @@ -12,9 +17,10 @@ deps =
pyperclip
pytest
pytest-cov
pytest-xdist
six
commands =
py.test -v --cov=cmd2 --basetemp={envtmpdir} {posargs}
py.test {posargs: -n 2} --cov=cmd2 --cov-report=term-missing
codecov

[testenv:py33]
Expand Down Expand Up @@ -55,9 +61,10 @@ deps =
pyperclip
pytest
pytest-cov
pytest-xdist
six
commands =
py.test -v --cov=cmd2 --basetemp={envtmpdir} {posargs}
py.test {posargs: -n 2} --cov=cmd2 --cov-report=term-missing
codecov

[testenv:py36-win]
Expand Down