How to: [⏫](#contents) Automatically re-run failed tests with [gotestsum](https://github.com/gotestyourself/gotestsum)
Other useful option of `gotestsum` is to re-run failed tests. For example, if you have flaky tests that are idempotent, then re-running them may be a quick fix. — [@dnephin](https://github.com/dnephin)

```
gotestsum --rerun-fails --packages="./..."
```

Requirements
```
go install gotest.tools/gotestsum@latest
```