Skip to content

Commit ce2f933

Browse files
committed
test: add coverage to testing
1 parent bf2497e commit ce2f933

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/go-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ jobs:
1919

2020
- name: go test
2121
run: |
22-
mkdir test/data
23-
go test -v ./...
22+
go test -v ./... -race -covermode=atomic -coverprofile=coverage.out
23+
go tool cover -func=coverage.out

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
tmp
22
data/gorm.db
3+
coverage.out

0 commit comments

Comments
 (0)