Skip to content

Commit

Permalink
Show output from failing tests in coverage job
Browse files Browse the repository at this point in the history
Similar to the unittest job get output from a failing test in the
coverage job so there's a chance to debug it.
  • Loading branch information
laudrup committed Jan 21, 2024
1 parent 142203c commit 1dee7d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
shell: bash
run: exec "${PROGRAMFILES}"/opencppcoverage/opencppcoverage --cover_children --sources="${GITHUB_WORKSPACE}"\\include --modules=unittest.exe --export_type=cobertura:cobertura.xml -- ctest
working-directory: build/
env:
CTEST_OUTPUT_ON_FAILURE: True

- name: Upload code coverage
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit 1dee7d6

Please sign in to comment.