Skip to content

Forge coverage: incomplete report #11664

@Amxx

Description

@Amxx

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

1.3.5-nightly

What version of Foundryup are you on?

No response

What command(s) is the bug in?

forge coverage --report lcov --ir-minimum

Operating System

Linux

Describe the bug

Our CI runs solidity-coverage and foundry coverage. Both outputs are passed to app.codecov.io.

I've noticed that tests that are only covered by foundry are not reported properly. Lines that are obviously covered are not reported as such. This ends up giving low coverage numbers that block merging our PRs.

See example of code bellow:

  • return and assembly ("memory-safe") { lines are marked as not-covered.
Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions