File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -8,31 +8,32 @@ Like `go test` but with colors.
88
99Use the pre-built binary for Linux 64-bit:
1010
11- ```
12- $ curl https://gotest-release.s3.amazonaws.com/gotest_linux > gotest && chmod +x gotest
11+ ``` bash
12+ curl https://gotest-release.s3.amazonaws.com/gotest_linux > gotest && chmod +x gotest
1313```
1414
1515Alternatively:
1616
17- ```
18- $ go get -u github.com/rakyll/gotest
17+ ``` bash
18+ go get -u github.com/rakyll/gotest
1919```
2020
21- # Usage
21+ ## Usage
2222
2323Accepts all the arguments and flags ` go test ` works with.
2424
2525Example:
2626
27+ ``` bash
28+ gotest -v github.com/jonasbn/go-test-demo
2729```
28- $ gotest -v github.com/jonasbn/go-test-demo
29- ```
30+
3031![ gotest output example screenshot] ( https://raw.githubusercontent.com/jonasbn/go-test-demo/1.0.0/gotest-go-test-demo.png )
3132
3233gotest comes with many colors! Configure the color of the output by setting the following env variable:
3334
34- ```
35- $ GOTEST_PALETTE="magenta,white"
35+ ``` bash
36+ GOTEST_PALETTE=" magenta,white"
3637```
3738
3839The output will have magenta for failed cases, white for success.
You can’t perform that action at this time.
0 commit comments