We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a84bfdb commit 8c9aa27Copy full SHA for 8c9aa27
.gitignore
@@ -24,4 +24,4 @@ _testmain.go
24
*.prof
25
.DS_Store
26
gin-bin
27
-coverage.out
+coverage.txt
.travis.yml
@@ -19,7 +19,7 @@ install:
19
- go get github.com/mattn/goveralls
20
21
script:
22
- - go test -v -covermode=count -coverprofile=coverage.txt
+ - make test
23
- $(go env GOPATH | awk 'BEGIN{FS=":"} {print $1}')/bin/goveralls -coverprofile=coverage.txt -service=travis-ci -repotoken=$COVERALLS_TOKEN
after_success:
Makefile
@@ -1,4 +1,7 @@
1
.PHONY: test
2
3
test:
4
- go test -v
+ go test -v -covermode=count -coverprofile=coverage.txt
5
+
6
+html:
7
+ go tool cover -html=coverage.txt
0 commit comments