]> Cypherpunks repositories - gostls13.git/commit
cmd/go: allow -coverprofile with multiple packages being tested
authorRuss Cox <rsc@golang.org>
Fri, 10 Nov 2017 02:23:08 +0000 (21:23 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 10 Nov 2017 18:39:05 +0000 (18:39 +0000)
commit283558e42b88a6afa39da6ad4ae87558dc053776
tree08270d8d7322dfa227e4d56a6f48d5e941292cc3
parent36ef06cc10005050d7b6f444d0ef3675f2e87fbf
cmd/go: allow -coverprofile with multiple packages being tested

It's easy to merge the coverage profiles from the
multiple executed tests, so do that.

Also ensures that at least an empty coverage profile
is always written.

Fixes #6909.
Fixes #18909.

Change-Id: I28b88e1fb0fb773c8f57e956b18904dc388cdd82
Reviewed-on: https://go-review.googlesource.com/76875
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/cmd/go/go_test.go
src/cmd/go/internal/test/cover.go [new file with mode: 0644]
src/cmd/go/internal/test/test.go
src/cmd/go/internal/test/testflag.go