mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-11 08:55:27 +03:00
🌱 Updated the coverage for tests (#2728)
- Updated the `Makefile` to include the `-coverpkg=./...` flag when running tests. [Makefile] - Changed `SKIP_GINKGO=1 go test -race -covermode=atomic -coverprofile=unit-coverage.out` to `SKIP_GINKGO=1 go test -race -covermode=atomic -coverprofile=unit-coverage.out -coverpkg=./...` in the `Makefile` Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
This commit is contained in:
parent
0169c375a7
commit
0c090b3cf0
2
Makefile
2
Makefile
@ -314,7 +314,7 @@ test: $(test-targets)
|
||||
unit-test: ## Runs unit test without e2e
|
||||
# Run unit tests, ignoring e2e tests
|
||||
# run the go tests and gen the file coverage-all used to do the integration with codecov
|
||||
SKIP_GINKGO=1 go test -race -covermode=atomic -coverprofile=unit-coverage.out `go list ./...`
|
||||
SKIP_GINKGO=1 go test -race -covermode=atomic -coverprofile=unit-coverage.out -coverpkg=./... `go list ./...`
|
||||
|
||||
unit-test-attestor: ## Runs unit tests on scorecard-attestor
|
||||
cd attestor; SKIP_GINKGO=1 go test -covermode=atomic -coverprofile=unit-coverage.out `go list ./...`; cd ..;
|
||||
|
Loading…
Reference in New Issue
Block a user