-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
C-forgeCommand: forgeCommand: forgeCmd-forge-testCommand: forge testCommand: forge testT-bugType: bugType: bug
Description
Component
Forge
Have you ensured that all of these are up to date?
- FoundryFoundryupTo pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
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)
grandizzy and andyrobert3
Metadata
Metadata
Assignees
Labels
C-forgeCommand: forgeCommand: forgeCmd-forge-testCommand: forge testCommand: forge testT-bugType: bugType: bug
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…