| if [[ $JOB_NAME == *"code-coverage" ]]; then |
| gcovr --object-directory=build \ |
| --output=build/coverage.xml \ |
| --exclude="$PWD/(tests|websocketpp)" \ |
| # Generate also a detailed HTML output, but using lcov (better results) |
| --rc lcov_branch_coverage=1 \ |
| --output-file build/coverage-with-tests-and-websocketpp.info |
| --remove build/coverage-with-tests-and-websocketpp.info "$PWD/websocketpp/*" \ |
| --rc lcov_branch_coverage=1 \ |
| --output-file build/coverage-with-tests.info |
| --remove build/coverage-with-tests.info "$PWD/tests/*" \ |
| --rc lcov_branch_coverage=1 \ |
| --output-file build/coverage.info |
| genhtml --branch-coverage \ |
| --output-directory build/coverage \ |
| --title "NFD unit tests" \ |