From 4cc96fb213594cfc0e0a6a4adb270e5fe14eb531 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Sat, 9 Apr 2022 14:20:57 -0400 Subject: [PATCH] Improve the docs for --post-run-command --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index e01f46eb..fee674a1 100644 --- a/README.md +++ b/README.md @@ -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.