diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 32f89680..901a787d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -58,10 +58,7 @@ jobs: - name: sample run: make coverage-sample - name: Generate Coverage Report - run: | - lcov --capture --directory . --output-file coverage.info - lcov --remove coverage.info '/usr/*' --output-file coverage.info - genhtml coverage.info --output-directory coverage + run: make coverage - name: Upload Coverage Report as Artifact uses: actions/upload-artifact@v3 with: diff --git a/Makefile b/Makefile index a6825148..b1e03231 100755 --- a/Makefile +++ b/Makefile @@ -108,6 +108,11 @@ config: coverage-sample: cd $(FSWBUILDDIR)/amd64-posix/default_cpu1 && ctest -R ".*sample.*" +coverage: + lcov --capture --directory $(FSWBUILDDIR)/amd64-posix/default_cpu1 --output-file coverage.info + lcov --remove coverage.info '/usr/*' --output-file coverage.info + genhtml coverage.info --output-directory coverage + debug: ./scripts/debug.sh