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 automation #56

Merged

Conversation

elenadimitrova
Copy link
Contributor

@elenadimitrova elenadimitrova commented Aug 15, 2022

Adds code coverage using forge coverage and lcov reports. Reports are uploaded to codecov.

Also consolidated invariant tests into a dedicated folder for clarity.

Note that even though code coverage reports are theoretically "working" these are still experimental in foundry and so far I have found discrepancies in branch evaluation, i.e. all if branches are reported as partially code covered even though there are fully covered branches in our tests. Bottom line is always double check the report against tests until forge coverage is stabilised.

For reference overall forge coverage backlog is maintained in foundry-rs/foundry#1961

@linear
Copy link

linear bot commented Aug 15, 2022

PRO-290 Manual test coverage analysis and next steps

evaluate test coverage and propose unit + integration tests to add

@changeset-bot
Copy link

changeset-bot bot commented Aug 15, 2022

🦋 Changeset detected

Latest commit: 7dd9102

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
sound-protocol Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@elenadimitrova elenadimitrova self-assigned this Aug 15, 2022
@elenadimitrova elenadimitrova force-pushed the elena/pro-290-manual-test-coverage-analysis-and-next branch 2 times, most recently from 1b8ec4a to 6733821 Compare August 16, 2022 05:15
@elenadimitrova elenadimitrova force-pushed the elena/pro-290-manual-test-coverage-analysis-and-next branch from 6733821 to 0c7d3b5 Compare August 16, 2022 06:10
@codecov
Copy link

codecov bot commented Aug 16, 2022

Codecov Report

❗ No coverage uploaded for pull request base (master@27c09e3). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #56   +/-   ##
=========================================
  Coverage          ?   85.62%           
=========================================
  Files             ?        7           
  Lines             ?      160           
  Branches          ?       28           
=========================================
  Hits              ?      137           
  Misses            ?        4           
  Partials          ?       19           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@elenadimitrova elenadimitrova force-pushed the elena/pro-290-manual-test-coverage-analysis-and-next branch from 303b8aa to 7dd9102 Compare August 16, 2022 14:36
@elenadimitrova elenadimitrova marked this pull request as ready for review August 16, 2022 16:04
@elenadimitrova elenadimitrova merged commit 807d905 into master Aug 17, 2022
@elenadimitrova elenadimitrova deleted the elena/pro-290-manual-test-coverage-analysis-and-next branch August 17, 2022 06:32
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.

3 participants