correct usage of go2junit

This commit is contained in:
Erik Brakkee 2024-11-20 22:23:53 +01:00
parent 046fb0dc57
commit 0db5412a8f
2 changed files with 5 additions and 4 deletions

4
Jenkinsfile vendored
View File

@ -56,8 +56,8 @@ pipeline {
}
post {
always {
junit 'testout/junit.xml'
junit 'testout/integrationtest.xml'
junit 'testout/junit/**/*.xml'
junit 'testout/integrationtest/**/*.xml'
}
}
}

View File

@ -21,12 +21,12 @@ vet: fmt
test: build
mkdir -p testout
go test -count=1 -coverprofile=testout/coverage.out -json ${TESTFLAGS} ./pkg/... ./cmd/... 2>&1 | \
go2junit - > testout/junit.xml
go2junit testout/junit
integrationtest: build
mkdir -p testout
go test -count=1 ${TESTFLAGS} ./integrationtest/... -json 2>&1 | \
go2junit - > testout/integrationtest.xml
go2junit testout/integrationtest
build: generate vet
mkdir -p bin
@ -40,6 +40,7 @@ clean:
rm -rf bin
rm -rf static/icons
rm -f pkg/server/ui/LICENSE*
rm -rf testout
static/icons/.downloaded:
./getbootstrapicons.sh