Skip to content

Commit

Permalink
Update test command to include the build flags
Browse files Browse the repository at this point in the history
  • Loading branch information
edocsss committed Jan 19, 2025
1 parent 86fa5b1 commit 3ded5c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/full_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:

- name: Full Test
run: |
go test -v -count=1 -cover ./... -coverprofile coverage.out -coverpkg ./...
make test-with-coverage
go tool cover -func coverage.out -o coverage.out
- name: Go Coverage Badge
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
run: go version

- name: Unit test
run: go test -v -cover -count=1 ./...
run: make test
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ test-race:
go test -tags=gofreedb_test -v -race -count=1 ./...

test-race-repeated:
go test -tags=gofreedb_test -v -race -count=10 ./...
go test -tags=gofreedb_test -v -race -count=10 ./...

test-with-coverage:
go test -v -count=1 -tags=gofreedb_test -cover ./... -coverprofile coverage.out -coverpkg ./...

0 comments on commit 3ded5c4

Please sign in to comment.