From 060bc8fbae2f794e247fd186df9fa27928904afe Mon Sep 17 00:00:00 2001 From: Erik Brakkee Date: Wed, 20 Nov 2024 21:32:03 +0100 Subject: [PATCH] now using the home grown go2junit converter that produces better nested output --- Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 4067ca0..15f90e7 100644 --- a/Makefile +++ b/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