gooze run
Runs mutation testing and writes reports. This is the main command.
Usage
gooze run [global flags] [paths...]What it does (high level)
- Generates mutations for a source file.
- Applies one mutation.
- Runs tests to see if they fail.
- Writes results into the reports directory.
Parallel workers
Run faster by using multiple workers:
gooze run -p 4 ./...This example runs up to 4 mutations at the same time.
Timeouts
Gooze stops a mutation test if it takes too long. In some versions you can configure this with a flag. Check your version with gooze run --help.
gooze run --helpIf you see many suspicious failures, run verbose and inspect logs:
gooze run --verbose ./...Caching / incremental runs
Gooze can reuse stored reports if nothing changed. To force a full re-run:
gooze run --no-cache ./...