Skip to content

Commit a4cdab5

Browse files
committed
Fix test coverage report
1 parent a978251 commit a4cdab5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ jobs:
3232
disable_search: true # optional (default = false)
3333
files: ./build/coverage.cobertura.xml # optional
3434
flags: unittests # optional
35-
# name: codecov-umbrella # optional
3635
token: ${{ secrets.CODECOV_TOKEN }}
3736
verbose: true # optional (default = false)
37+
plugins: noop
3838

3939
- name: Create test coverage summary
4040
uses: irongut/[email protected]

tests/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ if(TRAITS_TEST_COVERAGE)
7575

7676
add_custom_target(
7777
coverage
78-
COMMAND "${LCOV}" --capture --directory . --output-file coverage.info
79-
COMMAND "${LCOV}" --remove coverage.info '/usr/*' '*/gtest/*' --output-file coverage.info
78+
COMMAND "${LCOV}" --capture --directory . --exclude '/usr/*' --exclude 'gtest/*' --output-file
79+
coverage.info
8080
COMMAND "${LCOV}" --list coverage.info
81-
COMMAND "${GENHTML}" --demangle-cpp -o coverage coverage.info
82-
COMMAND "${GCOVR}" --cobertura --output coverage.cobertura.xml
81+
COMMAND "${GCOVR}" --cobertura --cobertura-pretty --exclude '/usr/*' --exclude 'gtest/*'
82+
--output coverage.cobertura.xml
8383
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}")
8484
endif()

0 commit comments

Comments
 (0)