Skip to content

Commit

Permalink
Merge pull request #246 from dnephin/warn-watch-and-paths
Browse files Browse the repository at this point in the history
Document --watch with extra package paths
  • Loading branch information
dnephin committed Apr 24, 2022
2 parents 938480e + ddb4125 commit f1fdcbd
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 f1fdcbd

Please sign in to comment.