File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 3232 - name : Run tests with coverage
3333 run : make test
3434
35+ - name : Upload test results to Codecov
36+ if : ${{ !cancelled() }}
37+ uses : codecov/test-results-action@v1
38+ with :
39+ token : ${{ secrets.CODECOV_TOKEN }}
40+
3541 - name : Upload coverage to Codecov
3642 uses : codecov/codecov-action@v5
3743 with :
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ LDFLAGS=-ldflags "-X github.com/stackrox/stackrox-mcp/internal/server.version=$(
2020# Coverage files
2121COVERAGE_OUT =coverage.out
2222
23+ # jUnit files
24+ JUNIT_OUT =junit.xml
25+
2326# Lint files
2427LINT_OUT =report.xml
2528
@@ -34,7 +37,8 @@ build: ## Build the binary
3437
3538.PHONY : test
3639test : # # Run unit tests with coverage
37- $(GOTEST ) -v -cover -coverprofile=$(COVERAGE_OUT ) ./...
40+ go install github.com/jstemmer/go-junit-report/
[email protected] 41+ $(GOTEST ) -v -cover -coverprofile=$(COVERAGE_OUT ) ./... -json 2>&1 | go-junit-report -parser gojson > tests.xml
3842
3943.PHONY : coverage-html
4044coverage-html : test # # Generate and open HTML coverage report
You can’t perform that action at this time.
0 commit comments