From c9378401e873e5fd48f6ccb36a94c6981be04cdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20Valg=C3=B4de?= Date: Mon, 1 Apr 2024 01:59:58 +0100 Subject: [PATCH] Issue #5 - Remove externals from code coverage report. --- .github/workflows/static.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index a46e752..38d40cc 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -69,11 +69,15 @@ jobs: - name: TestCoverageData working-directory: ${{github.workspace}}/build/ - run: geninfo --no-external "./PTN_Engine" -b "../" -o coverage.info + run: geninfo "./PTN_Engine" -b "../" -o coverage.info + + - name: Remove externals from coverage + working-directory: ${{github.workspace}}/build/ + run: lcov --remove coverage.info "/usr/include/*" "/usr/local/*" "*googletest/*" -o filtered_coverage.info - name: TestCoverageReport working-directory: ${{github.workspace}}/build/ - run: mkdir Output; genhtml coverage.info -o Output/CoverageReport + run: mkdir Output; genhtml filtered_coverage.info -o Output/CoverageReport - name: Install Doxygen run: sudo apt-get -y install graphviz librsvg2-bin doxygen