Skip to content

Commit 6645bb1

Browse files
committed
fix missing test results dir creation when running tests
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
1 parent 32de923 commit 6645bb1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ check-go-mod-tidy:
117117
@ .github/scripts/go-mod-tidy-check.sh && echo "go.mod and go.sum are tidy!"
118118

119119
.PHONY: unit
120-
unit: ## Run unit tests
120+
unit: $(RESULTS_DIR) ## Run unit tests
121121
$(call title,Running unit tests)
122122
go test -coverprofile $(COVER_REPORT) $(shell go list ./... | grep -v anchore/docker-sbom-cli-plugin/test)
123123
@go tool cover -func $(COVER_REPORT) | grep total | awk '{print substr($$3, 1, length($$3)-1)}' > $(COVER_TOTAL)

0 commit comments

Comments
 (0)