Skip to content

Commit

Permalink
Merge pull request #242 from gotestyourself/docs-post-run
Browse files Browse the repository at this point in the history
Improve the docs for --post-run-command
  • Loading branch information
dnephin committed Apr 9, 2022
2 parents cc0c1a1 + 4cc96fb commit a8b4e27
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,15 @@ example `notify` command only works on macOS with
gotestsum --post-run-command notify
```

**Example: command with flags**

Possitional arguments or command line flags can be passed to the `--post-run-command` by
quoting the whole command.

```
gotestsum --post-run-command "notify me --date"
```

### Re-running failed tests

When the `--rerun-fails` flag is set, `gotestsum` will re-run any failed tests.
Expand Down

0 comments on commit a8b4e27

Please sign in to comment.