Commit de896c97 authored by Mikaël Salson's avatar Mikaël Salson

Coverage: gcovr behaviour has changed

Between version 2 and version 3 the -r option doesn't have the same behaviour.
Now we need to the cd in the directory we are interested in. Weird.
parent ca1e4b2a
......@@ -42,10 +42,10 @@ coverage: unit_coverage should_coverage
unit_coverage: clean
make COVERAGE=1 unit
which gcovr > /dev/null && gcovr -r algo -e tests/ --xml > unit_coverage.xml || echo "gcovr is needed to generate a full report"
which gcovr > /dev/null && (cd algo; gcovr -r . -e tests/ --xml > ../unit_coverage.xml) || echo "gcovr is needed to generate a full report"
should_coverage: clean
make COVERAGE=1 should
which gcovr > /dev/null && gcovr -r algo -e tests/ --xml > should_coverage.xml || echo "gcovr is needed to generate a full report"
which gcovr > /dev/null && (cd algo; gcovr -r . -e tests/ --xml > ../should_coverage.xml) || echo "gcovr is needed to generate a full report"
data germline: %:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment