Skip to content

Commit

Permalink
test summary_cobertura
Browse files Browse the repository at this point in the history
  • Loading branch information
franneck94 committed Mar 10, 2024
1 parent fc6dc8b commit f315581
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,22 @@ jobs:
- name: building and testing
run: |
ctest --build-and-test
bash <(curl -s https://codecov.io/bash)
- name: Code Coverage Report
uses: irongut/[email protected]
with:
filename: coverage/**/summary_cobertura.xml
badge: true
fail_below_min: true
format: markdown
hide_branch_rate: false
hide_complexity: true
indicators: true
output: both
thresholds: '60 80'

- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: code-coverage-results.md
6 changes: 5 additions & 1 deletion cmake/CodeCoverage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function(setup_target_for_coverage_gcovr_html)
--json-summary
--json-summary-pretty
--html-theme
green)
github.dark-green)
set(GCOVR_HTML_CMD
${GCOVR_PATH}
${GCOVR_EXTRA_FLAGS}
Expand All @@ -145,6 +145,10 @@ function(setup_target_for_coverage_gcovr_html)
--json-summary
${Coverage_NAME}/summary.json
--json-summary-pretty
--cobertura-pretty
${Coverage_NAME}/summary_cobertura.xml
--cobertura
--decisions
-r
${BASEDIR}
${GCOVR_ADDITIONAL_ARGS}
Expand Down

0 comments on commit f315581

Please sign in to comment.