Skip to content

forge coverage silently fails, showing zero coverage #3900

@OliverNChalk

Description

@OliverNChalk

Component

Forge

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

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (8fd5930 2022-12-16T00:10:59.201989698Z)

What command(s) is the bug in?

forge coverage

Operating System

Linux

Describe the bug

If forge coverage successfully compiles but the tests error, then it will produce a zero coverage report, which feels wrong. If the tests fail during coverage, which is possible because coverage compiles with different settings, then it should result in the command returning a non-zero exit code rather than silently failing and returning a zero coverage report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions