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:
|
tools:
|
||||||
go install github.com/jstemmer/go-junit-report/v2@latest
|
go install github.com/jstemmer/go-junit-report/v2@latest
|
||||||
|
go install git.wamblee.org/public/gotools/cmd/go2junit@v0.0.3
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
go fmt ./...
|
go fmt ./...
|
||||||
@ -21,14 +22,12 @@ vet: fmt
|
|||||||
test: build
|
test: build
|
||||||
mkdir -p testout
|
mkdir -p testout
|
||||||
go test -count=1 -coverprofile=testout/coverage.out -json ${TESTFLAGS} ./pkg/... ./cmd/... 2>&1 | \
|
go test -count=1 -coverprofile=testout/coverage.out -json ${TESTFLAGS} ./pkg/... ./cmd/... 2>&1 | \
|
||||||
tee testout/tests.json | sh filtertestjson
|
go2junit - > testout/junit.xml
|
||||||
go-junit-report < testout/tests.json > testout/junit.xml
|
|
||||||
|
|
||||||
integrationtest: build
|
integrationtest: build
|
||||||
mkdir -p testout
|
mkdir -p testout
|
||||||
go test -count=1 ${TESTFLAGS} ./integrationtest/... -json 2>&1 | \
|
go test -count=1 ${TESTFLAGS} ./integrationtest/... -json 2>&1 | \
|
||||||
tee testout/integrationtests.json | sh filtertestjson
|
go2junit - > testout/integrationtests.json
|
||||||
go-junit-report < testout/integrationtests.json > testout/integrationtest.xml
|
|
||||||
|
|
||||||
build: generate vet
|
build: generate vet
|
||||||
mkdir -p bin
|
mkdir -p bin
|
||||||
|
Loading…
Reference in New Issue
Block a user