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

fix code coverage reporting #842

Merged
merged 1 commit into from
Mar 11, 2024
Merged

fix code coverage reporting #842

merged 1 commit into from
Mar 11, 2024

Conversation

terrazoon
Copy link
Contributor

Description

Local testing has been failing for a while because code coverage was below 95% (it was being reported as 93%).

It turns out there are two big discrepancies between local code coverage testing and testing in the cloud.

In the cloud, coverage failed if it was below 50%. Coverage also EXCLUDED notifications-utils code.

Locally, coverage failed if it was below 95%, but it INCLUDED notifications-utils code.

If we exclude notifications-utils code, the true test coverage is 88%. So, set the fail threshold in the cloud temporarily to 87%, write a ticket to write more tests, and change the local coverage test to exclude notifications-utils while still failing if below 95%.

TODO

  • Write more tests to bring code coverage back up to 95%

Security Considerations

N/A

@terrazoon terrazoon requested review from ccostino and a team March 11, 2024 17:48
@terrazoon terrazoon self-assigned this Mar 11, 2024
Copy link
Contributor

@ccostino ccostino left a comment

Choose a reason for hiding this comment

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

Thanks, @terrazoon!

@ccostino ccostino merged commit d7edf32 into main Mar 11, 2024
5 checks passed
@ccostino ccostino deleted the code_coverage branch March 11, 2024 18:54
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