cmd/go: verify go test flags with -fuzz #49294
Labels
FeatureRequest
fuzz
Issues related to native fuzzing support
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
This is more of a tracking issue, just to have a record of how
go test -fuzz
behaves when also passed other flags. Let's make sure this is reasonable for the upcoming release for now, and see if we can determine what it would should look like in the long term.For 1.18, the bare minimum is that it doesn't break anything :)
-cover
,-covermode
,-coverpkg
With
-run
the coverage is printed as zero. We can probably just document that it isn't supported.Without
-run
the coverage is shown for the other tests that were run. That's good, but I don't want people to get the impression that this coverage includes what was found during fuzzing. Maybe we should print a warning if-cover
is provided with the-fuzz
flag to indicate that the coverage % doesn't include anything from fuzzing.-cpu
,-failfast
,-short
,-shuffle
,-timeout
,-vet
These simply don't affect fuzzing right now, and maybe never should. We should either document that, add a warning to the command line before fuzzing starts, or both.
-json
,-list
,-parallel
,-run
,-v
,-trace
benchmarkingWorks as intended.
-mutexprofile
Not 100% sure if this is working as intended, but it at least isn't break anything.
The text was updated successfully, but these errors were encountered: