File tree Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ xlsx.test
5
5
* .swp
6
6
coverage.txt
7
7
.idea
8
-
8
+ test-reports /
Original file line number Diff line number Diff line change 1
- test :
1
+ SHELL := /bin/bash
2
+
3
+ test : tools
4
+ rm -rf test-reports
5
+ mkdir test-reports
2
6
go clean -testcache
3
- go test -v $$(go list ./... | grep -v /vendor/ )
7
+ go test -v 2>&1 ` go list ./... | grep -v /vendor/` | go-junit-report -iocopy -set-exit-code -out test-reports/unit-test-report.xml
8
+
9
+ tools :
10
+ go install github.com/jstemmer/go-junit-report/
[email protected]
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ github.com/rogpeppe/fastuuid v1.2.0 h1:Ppwyp6VYCF1nvBTXL3trRso7mXMlRrw9ooo375wvi
19
19
github.com/rogpeppe/fastuuid v1.2.0 /go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ =
20
20
github.com/shabbyrobe/xmlwriter v0.0.0-20200208144257-9fca06d00ffa h1:2cO3RojjYl3hVTbEvJVqrMaFmORhL6O06qdW42toftk =
21
21
github.com/shabbyrobe/xmlwriter v0.0.0-20200208144257-9fca06d00ffa /go.mod h1:Yjr3bdWaVWyME1kha7X0jsz3k2DgXNa1Pj3XGyUAbx8 =
22
- golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs =
23
22
golang.org/x/text v0.3.2 /go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk =
24
23
golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k =
25
24
golang.org/x/text v0.3.3 /go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ =
Original file line number Diff line number Diff line change @@ -16,4 +16,7 @@ scripts:
16
16
- make test
17
17
18
18
artifacts :
19
- - /testing/out
19
+ - test-reports
20
+
21
+ test-reports :
22
+ - test-reports
You can’t perform that action at this time.
0 commit comments