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

add code coverage report make option #480

Merged
merged 1 commit into from
Nov 21, 2024
Merged

add code coverage report make option #480

merged 1 commit into from
Nov 21, 2024

Conversation

nshaheed
Copy link
Contributor

The COVERAGE_REPORT option will set the proper build/linking options to track code coverage and the make coverage command will then generate a coverage report from the unit tests.

example usage:

> make linux-all -j COVERAGE_REPORT=true
> make coverage

And it will spit out some nice htmls pages of our test coverage in the report/ directory.

Note: this add dependencies on gcov and lcov to generate the coverage reports, but will not affect building if you don't set teh COVERAGE_REPORT flag.

Copy link
Member

@gewang gewang left a comment

Choose a reason for hiding this comment

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

whole new world

@gewang gewang merged commit 328742f into main Nov 21, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants