60

cmd/go: allow -coverprofile with multiple packages being tested · golang/go@2835...

 6 years ago
source link: https://github.com/golang/go/commit/283558e42b88a6afa39da6ad4ae87558dc053776
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

allow -coverprofile with multiple packages being tested · golang/go@283558e · GitHubPermalink

Browse files

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 <[email protected]>
Reviewed-by: David Crawshaw <[email protected]>

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK