Usage of /usr/bin/twt:
-dir string
path to directory with scripts to run
-flaky
run known-flaky tests too
-script string
path to script to run, will take precedence over dir
-test.artifacts
store test artifacts in test.,outputdir
-test.bench regexp
run only benchmarks matching regexp
-test.benchmem
print memory allocations for benchmarks
-test.benchtime d
run each benchmark for duration d or N times if `d` is of the form Nx (default 1s)
-test.blockprofile file
write a goroutine blocking profile to file
-test.blockprofilerate rate
set blocking profile rate (see runtime.SetBlockProfileRate) (default 1)
-test.count n
run tests and benchmarks n times (default 1)
-test.coverprofile file
write a coverage profile to file
-test.cpu list
comma-separated list of cpu counts to run each test with
-test.cpuprofile file
write a cpu profile to file
-test.failfast
do not start new tests after the first test failure
-test.fullpath
show full file names in error messages
-test.fuzz regexp
run the fuzz test matching regexp
-test.fuzzcachedir string
directory where interesting fuzzing inputs are stored (for use only by cmd/go)
-test.fuzzminimizetime value
time to spend minimizing a value after finding a failing input (default 1m0s)
-test.fuzztime value
time to spend fuzzing; default is to run indefinitely
-test.fuzzworker
coordinate with the parent process to fuzz random values (for use only by cmd/go)
-test.gocoverdir string
write coverage intermediate files to this directory
-test.list regexp
list tests, examples, and benchmarks matching regexp then exit
-test.memprofile file
write an allocation profile to file
-test.memprofilerate rate
set memory allocation profiling rate (see runtime.MemProfileRate)
-test.mutexprofile string
write a mutex contention profile to the named file after execution
-test.mutexprofilefraction int
if >= 0, calls runtime.SetMutexProfileFraction() (default 1)
-test.outputdir dir
write profiles to dir
-test.paniconexit0
panic on call to os.Exit(0)
-test.parallel n
run at most n tests in parallel (default 64)
-test.run regexp
run only tests and examples matching regexp
-test.short
run smaller test suite to save time
-test.shuffle string
randomize the execution order of tests and benchmarks (default "off")
-test.skip regexp
do not list or run tests matching regexp
-test.testlogfile file
write test action log to file (for use only by cmd/go)
-test.timeout d
panic test binary after duration d (default 0, timeout disabled)
-test.trace file
write an execution trace to file
-test.v
verbose: print additional output
-testwork
-update
update relevant golden files
Options (39)
| Option | Description | Source |
|---|---|---|
-dir string | path to directory with scripts to run | help |
-flaky | run known-flaky tests too | help |
-script string | path to script to run, will take precedence over dir | help |
-test.artifacts | store test artifacts in test.,outputdir | help |
-test.bench regexp | run only benchmarks matching regexp | help |
-test.benchmem | print memory allocations for benchmarks | help |
-test.benchtime d | run each benchmark for duration d or N times if `d` is of the form Nx (default 1s) | help |
-test.blockprofile file | write a goroutine blocking profile to file | help |
-test.blockprofilerate rate | set blocking profile rate (see runtime.SetBlockProfileRate) (default 1) | help |
-test.count n | run tests and benchmarks n times (default 1) | help |
-test.coverprofile file | write a coverage profile to file | help |
-test.cpu list | comma-separated list of cpu counts to run each test with | help |
-test.cpuprofile file | write a cpu profile to file | help |
-test.failfast | do not start new tests after the first test failure | help |
-test.fullpath | show full file names in error messages | help |
-test.fuzz regexp | run the fuzz test matching regexp | help |
-test.fuzzcachedir string | directory where interesting fuzzing inputs are stored (for use only by cmd/go) | help |
-test.fuzzminimizetime value | time to spend minimizing a value after finding a failing input (default 1m0s) | help |
-test.fuzztime value | time to spend fuzzing; | help |
-test.fuzzworker | coordinate with the parent process to fuzz random values (for use only by cmd/go) | help |
-test.gocoverdir string | write coverage intermediate files to this directory | help |
-test.list regexp | list tests, examples, and benchmarks matching regexp then exit | help |
-test.memprofile file | write an allocation profile to file | help |
-test.memprofilerate rate | set memory allocation profiling rate (see runtime.MemProfileRate) | help |
-test.mutexprofile string | write a mutex contention profile to the named file after execution | help |
-test.mutexprofilefraction int | if >= 0, calls runtime.SetMutexProfileFraction() (default 1) | help |
-test.outputdir dir | write profiles to dir | help |
-test.paniconexit0 | panic on call to os.Exit(0) | help |
-test.parallel n | run at most n tests in parallel (default 64) | help |
-test.run regexp | run only tests and examples matching regexp | help |
-test.short | run smaller test suite to save time | help |
-test.shuffle string | randomize the execution order of tests and benchmarks (default "off") | help |
-test.skip regexp | do not list or run tests matching regexp | help |
-test.testlogfile file | write test action log to file (for use only by cmd/go) | help |
-test.timeout d | panic test binary after duration d (default 0, timeout disabled) | help |
-test.trace file | write an execution trace to file | help |
-test.v | verbose: print additional output | help |
-testwork | help | |
-update | update relevant golden files | help |