now using the home grown go2junit converter that produces better nested
output
This commit is contained in:
parent
b67ecc0860
commit
060bc8fbae
7
Makefile
7
Makefile
@ -5,6 +5,7 @@
|
||||
|
||||
tools:
|
||||
go install github.com/jstemmer/go-junit-report/v2@latest
|
||||
go install git.wamblee.org/public/gotools/cmd/go2junit@v0.0.3
|
||||
|
||||
fmt:
|
||||
go fmt ./...
|
||||
@ -21,14 +22,12 @@ vet: fmt
|
||||
test: build
|
||||
mkdir -p testout
|
||||
go test -count=1 -coverprofile=testout/coverage.out -json ${TESTFLAGS} ./pkg/... ./cmd/... 2>&1 | \
|
||||
tee testout/tests.json | sh filtertestjson
|
||||
go-junit-report < testout/tests.json > testout/junit.xml
|
||||
go2junit - > testout/junit.xml
|
||||
|
||||
integrationtest: build
|
||||
mkdir -p testout
|
||||
go test -count=1 ${TESTFLAGS} ./integrationtest/... -json 2>&1 | \
|
||||
tee testout/integrationtests.json | sh filtertestjson
|
||||
go-junit-report < testout/integrationtests.json > testout/integrationtest.xml
|
||||
go2junit - > testout/integrationtests.json
|
||||
|
||||
build: generate vet
|
||||
mkdir -p bin
|
||||
|
Loading…
Reference in New Issue
Block a user