build: Include cross-package test coverage (#5735)

This commit is contained in:
Simon Frei 2019-06-13 19:28:14 +02:00 committed by GitHub
parent 1b4fe39a89
commit 38302270d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -348,7 +348,7 @@ func test(pkgs ...string) {
}
if coverage {
args = append(args, "-covermode", "atomic", "-coverprofile", "coverage.txt")
args = append(args, "-covermode", "atomic", "-coverprofile", "coverage.txt", "-coverpkg", strings.Join(pkgs, ","))
}
runPrint(goCmd, append(args, pkgs...)...)