Skip to content

Commit

Permalink
Enable coverage reports for sub packages as well.
Browse files Browse the repository at this point in the history
This is important for us since some packages are being mainly tested
by being included in higher level package code.

Changelog: None

Signed-off-by: Kristian Amlie <[email protected]>
(cherry picked from commit 37afcbb)
  • Loading branch information
Kristian Amlie authored and lluiscampos committed Mar 13, 2019
1 parent e2b7eb5 commit 1d87fe2
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 @@ -78,7 +78,7 @@ htmlcover: coverage

coverage:
rm -f coverage.txt
$(GO) test -coverprofile=coverage.txt ./...
$(GO) test -coverprofile=coverage.txt -coverpkg=github.com/mendersoftware/... ./...

.PHONY: build clean get-tools test check \
cover htmlcover coverage

0 comments on commit 1d87fe2

Please sign in to comment.