-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from aig-upf/codecov_integration
Integrate Tarski with codecov to track progress in test coverage
- Loading branch information
Showing
7 changed files
with
69 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
#!/bin/sh -ex | ||
|
||
pylint --version | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -x | ||
|
||
# python -m coverage combine | ||
# python -m coverage xml | ||
# python -m coverage report -m | ||
bash <(curl -s https://codecov.io/bash) -Z -X gcov -X coveragepy -X search -X xcode -X gcovout -X fix -f coverage.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,50 @@ | ||
|
||
[tox] | ||
# Don't care too much about these, as they will be overriden by Travis | ||
envlist = py36,stylechecks | ||
envlist = coverage | ||
|
||
[testenv] | ||
deps= | ||
pytest | ||
|
||
[testenv] | ||
passenv = PYTHONPATH FSBENCHMARKS DOWNWARD_BENCHMARKS | ||
deps= pytest | ||
commands= pytest | ||
|
||
commands= | ||
|
||
[testenv:pycoverage] | ||
passenv = PYTHONPATH FSBENCHMARKS DOWNWARD_BENCHMARKS CODECOV_TOKEN CI TRAVIS TRAVIS_* | ||
whitelist_externals = /bin/bash | ||
deps= | ||
pytest | ||
pytest-cov | ||
commands= | ||
# Report both on screen and generate the xml file | ||
pytest --cov --cov-report term --cov-report xml | ||
{toxinidir}/scripts/report-coverage | ||
|
||
|
||
[testenv:antlrgrammars] | ||
# Test the building of the different parser ANTLR grammars only | ||
commands = {toxinidir}/scripts/build-grammars | ||
|
||
|
||
[testenv:stylechecks] | ||
deps = | ||
pylint | ||
deps = pylint | ||
commands = {toxinidir}/scripts/lint | ||
|
||
|
||
### Some coverage.py configuration options ### | ||
[coverage:paths] | ||
source = | ||
src | ||
*/site-packages/tarski | ||
|
||
|
||
[coverage:run] | ||
branch = true | ||
source = | ||
tarski | ||
tests | ||
|
||
;commands = pylint src/tarski --rcfile={toxinidir}/.pylintrc | ||
commands = {toxinidir}/scripts/lint | ||
[coverage:report] | ||
; show_missing = true | ||
precision = 2 |