Browse Source

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

Simon Frei 6 years ago
parent
commit
38302270d4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      build.go

+ 1 - 1
build.go

@@ -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...)...)