File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6969 - name : Run tests with coverage
7070 working-directory : ${{ github.workspace }}/build
7171 run : |
72+ # Run tests
7273 ctest --output-on-failure --output-junit test_results.xml
7374
7475 # Capture coverage ONLY from include/
@@ -77,11 +78,10 @@ jobs:
7778 --ignore-errors empty,mismatch \
7879 --include '*/OneStopParallel/include/*'
7980
80- # Remove unused warnings: this is the KEY fix
81- lcov --ignore-errors unused,empty,mismatch --remove coverage.info '*/tests/*' '*/apps/*' --output-file coverage.info
82-
83- # Optional: silence header template warnings
84- geninfo --rc geninfo_unexecuted_blocks=1 coverage.info
81+ # Remove unused warnings + ignore tests/apps
82+ lcov --remove coverage.info '*/tests/*' '*/apps/*' \
83+ --ignore-errors unused,empty,mismatch \
84+ --output-file coverage.info
8585
8686 # Generate HTML report
8787 genhtml coverage.info --output-directory coverage_html
You can’t perform that action at this time.
0 commit comments