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: remove test() functions to display correct coverage #244

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

dimazhornyk
Copy link
Contributor

What ❔

Removed some test() functions from intermediary contracts to display correct coverage, and added new test.
Current coverage stats:
image

Why ❔

The usage of test() function indeed removes the unneeded files (like files from dev-contracts folder) from the coverage report, but it results in the coverage not being displayed for the libraries. I removed those functions temporarily, so we could see the real libraries coverage(unfortunately, we will see the dev-contracts as well, but I proposed a small change to foundry foundry-rs/foundry#7301, that would allow us to ignore those files in the future).

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.

Copy link
Member

@vladbochok vladbochok left a comment

Choose a reason for hiding this comment

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

Nice!

@vladbochok vladbochok merged commit 400c789 into kl-factory Mar 5, 2024
14 of 17 checks passed
@vladbochok vladbochok deleted the add-getters-facet-tests branch March 5, 2024 06:51
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.

None yet

2 participants