starknet-foundry icon indicating copy to clipboard operation
starknet-foundry copied to clipboard

Add `--exclude` flag for executing tests

Open amanusk opened this issue 8 months ago • 1 comments

Which component is your feature related to?

Forge

Feature Request

Add an option to specify an --exclude flag, that will treat the regex passed as the tests to omit, and execute everything else

amanusk avatar Apr 20 '25 10:04 amanusk

This will probably be implemented as --skip flag (snforge test --skip <filter> to mimic cargo test behavior (it takes skip filter with this syntax cargo test -- --skip <filter>.

The --exclude flag is used to filter packages in cargo so we think it makes more sense to follow their naming conventions.

cptartur avatar Apr 22 '25 09:04 cptartur

Being worked on as part of the linked issue

cptartur avatar Apr 30 '25 14:04 cptartur