Go CLI Testing and Benchmarks/Limit fuzz duration

Run fuzzing for a bounded amount of time.

Section: Fuzzing

Limit fuzz duration

bash
bash
go test -fuzz=FuzzParse -fuzztime=30s
Explanation

Run fuzzing for a bounded amount of time. Useful in Go CLI workflows.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Fuzzing
Run fuzz target
Run or continue fuzzing for a matching fuzz target.
OpenIn sheetbashsame section
Run fuzz seed corpus
Run only seed inputs in a fuzz test.
OpenIn sheetbashsame section
Test all packages
Run tests for all packages in the module.
OpenIn sheetbash1 tag match
Run benchmarks
Run benchmarks matching a regexp.
OpenIn sheetbash1 tag match
Cross-package coverage
Measure coverage for multiple packages while testing one package set.
OpenIn sheetbash1 tag match
Emit JSON test events
Generate machine-readable test events.
OpenIn sheetbash1 tag match