aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--Makefile3
2 files changed, 4 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index ff0fbbd..f22556d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,5 @@
/ciigo-example
/_bin
*.html
+cover.out
+cover.html
diff --git a/Makefile b/Makefile
index ec2a6e6..8d3c9a3 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,8 @@ lint:
test:
go run ./cmd/ciigo-example embed
- CGO_ENABLED=1 go test -failfast -v -race -p=1 ./...
+ CGO_ENABLED=1 go test -failfast -v -race -p=1 -coverprofile=cover.out ./...
+ go tool cover -html=cover.out -o cover.html
install: build
mv _bin/ciigo $(GOBIN)