Skip to content

Commit

Permalink
Add -t flag to test2json examples
Browse files Browse the repository at this point in the history
This seems to be required to get elapsed time. See
#96
  • Loading branch information
dnephin committed Mar 29, 2020
1 parent b9c9035 commit 7abd97c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ that `gotestsum` expects.
Example:

```
gotestsum --raw-command -- go tool test2json -p pkgname ./binary.test -test.v
gotestsum --raw-command -- go tool test2json -t -p pkgname ./binary.test -test.v
```

`pkgname` is the name of the package being tested, it will show up in the test
Expand Down
2 changes: 1 addition & 1 deletion docs/running-without-go.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ mv test2json /usr/local/bin/test2json
Example: running without a Go installation
```
export GOVERSION=1.13
gotestsum --raw-command -- test2json -p pkgname ./binary.test -test.v
gotestsum --raw-command -- test2json -t -p pkgname ./binary.test -test.v
```

0 comments on commit 7abd97c

Please sign in to comment.