diff options
| author | Ceridwen <ceridwenv@gmail.com> | 2016-01-18 17:02:05 -0500 |
|---|---|---|
| committer | Ceridwen <ceridwenv@gmail.com> | 2016-01-18 17:02:05 -0500 |
| commit | 78e5ab8c0b685aed87cab23f5e8dcb769e172a7f (patch) | |
| tree | 9242da05df2cc12524a9cd83f475de571184a7a9 | |
| parent | 3be6e78ea87293bf97ae89d7d4ddba0b4b57f5e6 (diff) | |
| parent | c71e16725af822b3b96e0417ad087b33931273d0 (diff) | |
| download | astroid-git-78e5ab8c0b685aed87cab23f5e8dcb769e172a7f.tar.gz | |
Merge coverage support.
| -rw-r--r-- | tox.ini | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -1,12 +1,21 @@ [tox] -envlist = py27, py33, py34, py35, pypy, jython, pylint +envlist = coverage-clean, py27, py33, py34, py35, pypy, jython, pylint, coverage-stats skip_missing_interpreters = true [testenv:pylint] commands = pylint -rn --rcfile={toxinidir}/pylintrc {envsitepackagesdir}/astroid +[testenv:coverage-clean] +commands = coverage erase + +[testenv:coverage-stats] +commands = + coverage report --ignore-errors --include="astroid*" + coverage html --ignore-errors --include="astroid*" + [testenv] deps = + coverage # Temporary hack, ignore this. dictproxyhack py27,py33,pypy,jython: enum34 @@ -19,4 +28,7 @@ deps = six wrapt pylint: git+https://github.com/pycqa/pylint@master -commands = python -Wi -m unittest discover -s {envsitepackagesdir}/astroid/tests -p "unittest*.py" +# Disable warnings because they overflow the Travis log on 3.5 +setenv = PYTHONWARNINGS = i +# {posargs} allows passing command line arguments to unittest +commands = coverage run --append --branch -m unittest discover {posargs} -s {envsitepackagesdir}/astroid/tests -p "unittest*.py" |
