Skip to content

Commit

Permalink
Setup code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacques Joubert committed Feb 14, 2019
1 parent a14ff0b commit c751f23
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion coverage
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,19 @@ rm -fR cover/
coverage erase
# Discover and run all tests
coverage run --concurrency=multiprocessing ./scripts/run_tests.py discover -v

coverage combine
coverage report
res_combine=$?
if [ $res_combine -ne 0 ]
then
echo -e "Travis Build FAILURE: Coverage combine failed"
exit 1
fi

coverage report --fail-under=100
coverage_report=$?
if [ $coverage_report -ne 0 ]
then
echo -e "Travis Build FAILURE: Coverage percentage failed"
exit 1
fi

0 comments on commit c751f23

Please sign in to comment.