Skip to content

Commit

Permalink
Add coverage make target (argoproj#1557)
Browse files Browse the repository at this point in the history
  • Loading branch information
dtaniwaki authored and jessesuen committed Aug 20, 2019
1 parent ced0ee9 commit ba7a1ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ cmd/**/debug
hack/**/debug
debug.test
*.iml
coverage.out
.envrc
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@ endif

.PHONY: test
test:
go test ./...
go test -covermode=count -coverprofile=coverage.out ./...

.PHONY: cover
cover:
go tool cover -html=coverage.out

.PHONY: codegen
codegen:
Expand Down

0 comments on commit ba7a1ed

Please sign in to comment.