diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2017-10-12 12:48:03 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2017-10-12 12:48:03 +0200 |
commit | 7bfb5e83b162d2126c9929b6d863724176269b6d (patch) | |
tree | 4574a19cca3e3782c62dabc96e0c26360e6e4c85 /tox.ini | |
parent | 1602d9989ce74773bd5d7f2d0d76861eb210d227 (diff) | |
download | astroid-git-7bfb5e83b162d2126c9929b6d863724176269b6d.tar.gz |
Run the local tests, not the installed ones, and strip the local path for coveralls
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -24,11 +24,11 @@ setenv = COVERAGE_FILE = {toxinidir}/.coverage.{envname} commands = - python -Wi {envsitepackagesdir}/coverage run -m unittest {posargs: discover -s {envsitepackagesdir}/astroid/tests -p "unittest*.py"} + python -Wi -m coverage run -m unittest {posargs: discover -s astroid/tests -p "unittest*.py"} ; Transform absolute path to relative path ; for compatibility with coveralls.io and fix 'source not available' error. ; If you can find a cleaner way is welcome - python -c "import os;cov_strip_abspath = open(os.environ['COVERAGE_FILE'], 'r').read().replace('.tox' + os.sep + os.path.relpath('{envsitepackagesdir}', '{toxworkdir}') + os.sep, '');open(os.environ['COVERAGE_FILE'], 'w').write(cov_strip_abspath)" + python -c "import os;cov_strip_abspath = open(os.environ['COVERAGE_FILE'], 'r').read().replace('{toxinidir}' + os.sep, '');open(os.environ['COVERAGE_FILE'], 'w').write(cov_strip_abspath)" [testenv:coveralls] setenv = |