Open
Description
Component
Forge
Have you ensured that all of these are up to date?
- FoundryFoundryup
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
Type
Projects
Status
Backlog
Activity
[-]forge --rerun: run passing tests[/-][+]bug(`forge test`): `--rerun` runs passing tests of the same name in different contracts[/+]fix(forge): prevent --rerun from running passing tests with same name (…
test(forge): add test case for --rerun filtering by contract and test…