From ddb41253df1d76b58351ea1c6c489f52ab968fb5 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Sun, 24 Apr 2022 14:38:05 -0400 Subject: [PATCH] Document --watch with extra package paths --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index fee674a1..6eb1d5f7 100644 --- a/README.md +++ b/README.md @@ -345,6 +345,11 @@ tests for the package which contains the changed file. By default all directories with at least one file with a `.go` extension, under the current directory will be watched. Use the `--packages` flag to specify a different list. +If `--watch` is used with a command line that includes the name of one or more +packages as command line arguments (ex: `gotestsum --watch -- ./...` or +`gotestsum --watch -- ./extrapkg`), the +tests in those packages will also be run when any file changes. + While in watch mode, pressing some keys will perform an action: * `r` will run tests for the previous event.