Skip to content

Commit

Permalink
Switch coverage to JSON, ignore debug logging and NotImplemented code
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Hennenfent committed Aug 10, 2020
1 parent b6f4112 commit 6517683
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@
source = manticore
omit =
*__init__.py

[report]
exclude_lines =
pragma: no cover
logger.info
logger.debug
raise NotImplementedError
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
- name: Coveralls Parallel
run: |
coveralls debug
coveralls --merge coverage.xml
coveralls --merge coverage.json
env:
COVERALLS_PARALLEL: true
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions scripts/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ run_truffle_tests(){
return 1
fi
echo "Truffle test succeded"
coverage xml
coverage json
coverage report
cd ..
cp truffle_tests/coverage.xml .
Expand All @@ -118,7 +118,7 @@ run_tests_from_dir() {
echo "Running only the tests from 'tests/$DIR' directory"
pytest --durations=100 --cov=manticore --cov-config=$GITHUB_WORKSPACE/.coveragerc -n auto "tests/$DIR"
RESULT=$?
coverage xml
coverage json
coverage report
return $RESULT
}
Expand All @@ -136,7 +136,7 @@ run_examples() {
launch_examples
RESULT=$?
echo Ran example scripts
coverage xml
coverage json
coverage report
popd
cp examples/script/coverage.xml .
Expand Down

0 comments on commit 6517683

Please sign in to comment.