Skip to content

Commit f1fdcbd

Browse files
authored
Merge pull request #246 from dnephin/warn-watch-and-paths
Document --watch with extra package paths
2 parents 938480e + ddb4125 commit f1fdcbd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,11 @@ tests for the package which contains the changed file. By default all
345345
directories with at least one file with a `.go` extension, under the current
346346
directory will be watched. Use the `--packages` flag to specify a different list.
347347

348+
If `--watch` is used with a command line that includes the name of one or more
349+
packages as command line arguments (ex: `gotestsum --watch -- ./...` or
350+
`gotestsum --watch -- ./extrapkg`), the
351+
tests in those packages will also be run when any file changes.
352+
348353
While in watch mode, pressing some keys will perform an action:
349354

350355
* `r` will run tests for the previous event.

0 commit comments

Comments
 (0)