Skip to content

Commit

Permalink
Combines coverage collection and report generation into a single go t…
Browse files Browse the repository at this point in the history
…est command.

Signed-off-by: hanenMizouni <[email protected]>
  • Loading branch information
outscale-hmi committed Nov 23, 2024
1 parent 7af4a3c commit 96e82f5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,9 @@ checkfmt: ## check gofmt

.PHONY: unit-test
unit-test:
go test -v -coverprofile=covers.out ./controllers
go tool cover -func=covers.out -o covers.txt
go tool cover -html=covers.out -o covers.html
go test -v -coverprofile=apicovers.out ./api/v1beta1
go tool cover -func=apicovers.out -o apicovers.txt
go tool cover -html=apicovers.out -o apicovers.html
go test -v -timeout 20m -p 4 -coverprofile=coverage.cov ./...
go tool cover -func=coverage.cov -o coverage.txt
go tool cover -html=coverage.cov -o coverage.html

.PHONY: cloud-init-secret
cloud-init-secret:
Expand Down

0 comments on commit 96e82f5

Please sign in to comment.