Skip to content

bug(forge test): --rerun runs passing tests of the same name in different contracts #10693

Open
@L0GYKAL

Description

@L0GYKAL

Component

Forge

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

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge Version: 1.2.1-stable

What version of Foundryup are you on?

foundryup: 1.0.1

What command(s) is the bug in?

forge test

Operating System

Linux

Describe the bug

I have tests that have the same name but in different contracts and if one of them doesn't pass, if I want to rerun only the non-passing tests, I use forge test --rerun which should only run the non-passing tests.
And it still runs the passing tests that have the same names as the non-passing ones (which are run as well)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions