Skip to content

Commit

Permalink
Add short-with-failures to help
Browse files Browse the repository at this point in the history
And make the README match the help output.
  • Loading branch information
dnephin committed Oct 27, 2019
1 parent 30a7d17 commit 168b49e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@ gotestsum --format short-verbose
```

Supported formats:
* `dots` - output one character per test.
* `short` (default) - output a line for each test package.
* `short-with-failures` - like short, but prints test output as soon as a test
fails.
* `standard-quiet` - the default `go test` format.
* `short-verbose` - output a line for each test and package.
* `dots` - print a character for each test.
* `short` (default) - print a line for each package.
* `short-with-failures` - print a line for each package and failed test output.
* `short-verbose` - print a line for each test and package.
* `standard-quiet` - the standard `go test` format.
* `standard-verbose` - the standard `go test -v` format.

Have a suggestion for some other format? Please open an issue!
Expand Down
11 changes: 6 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,12 @@ Flags:
flags.PrintDefaults()
fmt.Fprint(os.Stderr, `
Formats:
dots print a character for each test
short print a line for each package
short-verbose print a line for each test and package
standard-quiet default go test format
standard-verbose default go test -v format
dots print a character for each test
short print a line for each package
short-with-failures print a line for each package and failed test output
short-verbose print a line for each test and package
standard-quiet standard go test format
standard-verbose standard go test -v format
`)
}
flags.BoolVar(&opts.debug, "debug", false, "enabled debug")
Expand Down

0 comments on commit 168b49e

Please sign in to comment.