From 436617f2ceb6fc366f49ecf8341fcd61d5db9c5e Mon Sep 17 00:00:00 2001 From: Andrei Dabija Date: Tue, 1 Sep 2026 11:38:32 +0300 Subject: [PATCH 1/2] Include platform files in coverage; upload only curated report to Codecov --- .github/workflows/coverage.yml | 2 ++ gcovr.cfg | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 43f6699..4919e79 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -70,6 +70,8 @@ jobs: uses: codecov/codecov-action@v5 with: files: coverage/cobertura.xml + disable_search: true + plugins: noop use_oidc: true - name: Upload coverage report diff --git a/gcovr.cfg b/gcovr.cfg index 90152d2..c2afe46 100644 --- a/gcovr.cfg +++ b/gcovr.cfg @@ -1,4 +1,3 @@ filter = source/gameanalytics/ filter = include/GameAnalytics/ -exclude = source/gameanalytics/Platform/ exclude-throw-branches = yes From 5cd76d71558ca365c4cde8a456f121010891d147 Mon Sep 17 00:00:00 2001 From: Andrei Dabija Date: Tue, 1 Sep 2026 12:02:11 +0300 Subject: [PATCH 2/2] Instrument test target so inline header code is attributed correctly --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8055457..0d6239a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -283,4 +283,5 @@ if(ENABLE_COVERAGE) endif() target_compile_options(GameAnalytics PRIVATE -g -O0 --coverage -fprofile-update=atomic) target_link_options(GameAnalytics PUBLIC --coverage) + target_compile_options(${UT_PROJECT_NAME} PRIVATE -g -O0 --coverage -fprofile-update=atomic) endif()