Projects STRLCPY scorecard Commits 0c090b3c
🤬
  • 🌱 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 <[email protected]>
  • Loading...
  • Naveen committed with GitHub 1 year ago
    0c090b3c
    1 parent 0169c375
  • ■ ■ ■ ■
    Makefile
    skipped 313 lines
    314 314  unit-test: ## Runs unit test without e2e
    315 315   # Run unit tests, ignoring e2e tests
    316 316   # run the go tests and gen the file coverage-all used to do the integration with codecov
    317  - SKIP_GINKGO=1 go test -race -covermode=atomic -coverprofile=unit-coverage.out `go list ./...`
     317 + SKIP_GINKGO=1 go test -race -covermode=atomic -coverprofile=unit-coverage.out -coverpkg=./... `go list ./...`
    318 318   
    319 319  unit-test-attestor: ## Runs unit tests on scorecard-attestor
    320 320   cd attestor; SKIP_GINKGO=1 go test -covermode=atomic -coverprofile=unit-coverage.out `go list ./...`; cd ..;
    skipped 117 lines
Please wait...
Page is in error, reload to recover