-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add a --no-fuzz
or --skip-fuzz
flag to skip fuzz tests
#1980
Comments
that makes sense this would also be a good time refactoring the there was a recent issue #1908 that highlighted a problem with the Filter. ideally, everything should be merged from the Config so it would be preferable if we could move that type to config entirely |
This is most likely a breaking change since the default behavior for The non-breaking path would be to just ignore |
This is easier to do now that we don't have |
FWIW I don't feel too strongly about this feature and am ok with closing this as "not planned". Setting fuzz runs to zero does seem to work as shown below, so I'm not sure this is worth the API clutter
|
Closing since this can be achieved with zero fuzz runs, or with a good test naming convention and skipping tests with |
Component
Forge
Describe the feature you would like
This is useful as you don't always need to run fuzz tests, e.g. when iterating on something, and this can significantly speed up tests. Especially if the fuzz takes make RPC calls, for example.
Right now we always pass in
true
for the value ofinclude_fuzz_tests
, so this should be simple to expose with a flag / config item:foundry/cli/src/cmd/forge/test.rs
Line 324 in 309cfe7
foundry/cli/src/cmd/forge/test.rs
Line 460 in 309cfe7
Workarounds:
function test_*
andfunction testFuzz_*
so you can use the match flagsAdditional context
No response
The text was updated successfully, but these errors were encountered: