| if [[ $JOB_NAME == *"code-coverage" ]]; then |
| # Generate an XML report (Cobertura format) and a detailed HTML report using gcovr |
| # Note: trailing slashes are important in the paths below. Do not remove them! |
| --object-directory build \ |
| --exclude ndn-cxx/detail/nonstd/ \ |
| --exclude-throw-branches \ |
| --exclude-unreachable-branches \ |
| --html-details build/gcovr/ \ |
| # Generate a detailed HTML report using lcov |
| --exclude "$PWD/ndn-cxx/detail/nonstd/*" \ |
| --exclude "$PWD/tests/*" \ |
| --rc lcov_branch_coverage=1 \ |
| --output-file build/coverage.info |
| genhtml --branch-coverage \ |
| --output-directory build/lcov \ |
| --title "ndn-cxx unit tests" \ |