CLI tool that runs go test
(or another command from --test-command-name
) with arguments from --test-args
, parses test results from output and retries failed tests according to --retries-per-test
and --total-reries
limits. If --total-retries
is 0, then no global limit is applied.
Testing commands are run using provided --shell
(default "/bin/bash") with -c option.
Installation:
go install github.com/zcapitalz/go-test-retryer/cmd/go-test-retryer@latest
Usage:
- --test-args string
test arguments - --test-command-name string
test command name (default "go test") - --retries-per-test int
maximum retries per test - --total-retries int
maximum retries for all tests - --json bool
parse go test output as json - --verbose bool
verbose mode - --shell string
path to shell (default "/bin/bash")
Exit codes:
0
: if all tests that failed during any run are successfuly retried1
: for unexpected error*
: whatever was returned by last run otherwise