Skip to content

Commit

Permalink
Document --watch with extra package paths
Browse files Browse the repository at this point in the history
  • Loading branch information
dnephin committed Apr 24, 2022
1 parent 938480e commit ddb4125
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ddb4125

Please sign in to comment.