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

Generate a coverage report for End to end tests #5667

Merged
merged 2 commits into from
Dec 26, 2024

Conversation

esev
Copy link
Contributor

@esev esev commented Dec 25, 2024

For coverage to be saved, the application under test needs to exit cleanly, calling all exit handling logic. This happens when the application calls exit(). I've modified the simulator and the crypto unit test so they exit and save the coverage details.

Demo: see the code-coverage-report artifact on https://github.com/esev/meshtastic-firmware/actions/runs/12497423501

The code-coverage-report/coverage_src.info file should be compatible with most coverage tools like CodeCov/Coveralls.

@thebentern thebentern merged commit 1281da6 into meshtastic:master Dec 26, 2024
46 checks passed
@thebentern
Copy link
Contributor

I've used Coveralls in some other projects, so I'll add it to my list to get that added for the firmware

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