Skip to content

Commit

Permalink
Add flag for outputting coverage to unit test target in Makefile
Browse files Browse the repository at this point in the history
Output coverage when running unit tests using the Makefile by setting
the coverage flag. The coverage is stored and can be read by Sonar.
  • Loading branch information
jsimons1989 committed Dec 10, 2019
1 parent 66e2a58 commit 17f3854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ test: test-unit

.PHONY: test-unit
test-unit:
go test $(TESTS) -run 'Unit'
go test $(TESTS) -run 'Unit' -coverprofile=coverage.out

0 comments on commit 17f3854

Please sign in to comment.