You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing unit tests for some libraries and am getting 0% coverage with forge coverage. Feel free to look at this branch as an example! Uniswap/relayer#57
The text was updated successfully, but these errors were encountered:
EDIT: the PR that is referenced in the issue says:
This does not currently handle cases where using for is used for internal libraries since it seems like we lose information on what libraries were bound to what types..
A potential workaround is calling the library explicitly e.g. MyLib.helper(MyType) instead of using MyLib for MyType
@0xalpharush I'm having a similar issue. I've tried calling my library functions explicitly and still don't see the coverage being updated. Are there other workarounds to this?
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (a5efe4f 2024-02-08T00:16:00.244105000Z)
What command(s) is the bug in?
forge coverage
Operating System
macOS (Apple Silicon)
Describe the bug
I am writing unit tests for some libraries and am getting 0% coverage with forge coverage. Feel free to look at this branch as an example! Uniswap/relayer#57
The text was updated successfully, but these errors were encountered: