Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added code coverage in CI #23

Merged
merged 20 commits into from
Jan 11, 2024
Merged

Added code coverage in CI #23

merged 20 commits into from
Jan 11, 2024

Conversation

4c3y
Copy link
Member

@4c3y 4c3y commented Jan 10, 2024

Features

Code Coverage

  • Added code coverage for unittests
  • Added job to print code coverage
  • Upload coverage report to github pages (Only on master branch)
  • Added link to most recent coverage report in README.md
  • Added ENABLE_COVERAGE switch in CMakeLists.txt

To suppress some warnings the -fcompare-debug-second compiler flag is used in lpp. This can not be used in combination with the -ftest-coverage to generate a coverage report because some .gcno which are required to generate the coverage report are not generated.

From the GCC docs (https://gcc.gnu.org/onlinedocs/gcc-9.4.0/gcc/Developer-Options.html):

This option is implicitly passed to the compiler for the second compilation requested by -fcompare-debug, along with options to silence warnings, and omitting other options that would cause the compiler to produce output to files or to standard output as a side effect

(This took me only half a day to figure out 😅)

Other

  • Added support for gcc-11
  • Added CI badge in README.md

@4c3y 4c3y added the enhancement New feature or request label Jan 10, 2024
@4c3y 4c3y marked this pull request as ready for review January 11, 2024 00:14
Copy link
Member

@michaelpantic michaelpantic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice!

@4c3y 4c3y merged commit 59b2f2d into master Jan 11, 2024
13 checks passed
@4c3y 4c3y deleted the feature/coverage branch January 22, 2024 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants