{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/6909","labels_url":"https://api.github.com/repos/golang/go/issues/6909/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/6909/comments","events_url":"https://api.github.com/repos/golang/go/issues/6909/events","html_url":"https://github.com/golang/go/issues/6909","id":51285909,"number":6909,"title":"x/tools/cmd/cover: should support -coverprofile unifying tests from multiple packages","user":{"login":"wadey","id":18437,"avatar_url":"https://avatars.githubusercontent.com/u/18437?v=3","gravatar_id":"","url":"https://api.github.com/users/wadey","html_url":"https://github.com/wadey","followers_url":"https://api.github.com/users/wadey/followers","following_url":"https://api.github.com/users/wadey/following{/other_user}","gists_url":"https://api.github.com/users/wadey/gists{/gist_id}","starred_url":"https://api.github.com/users/wadey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wadey/subscriptions","organizations_url":"https://api.github.com/users/wadey/orgs","repos_url":"https://api.github.com/users/wadey/repos","events_url":"https://api.github.com/users/wadey/events{/privacy}","received_events_url":"https://api.github.com/users/wadey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/22","html_url":"https://github.com/golang/go/milestones/Unreleased","labels_url":"https://api.github.com/repos/golang/go/milestones/22/labels","id":1067491,"number":22,"title":"Unreleased","description":"Issues that do not affect released Go code and binaries.\r\n","creator":{"login":"rsc","id":104030,"avatar_url":"https://avatars.githubusercontent.com/u/104030?v=3","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":351,"closed_issues":84,"state":"open","created_at":"2015-04-14T18:48:22Z","updated_at":"2015-07-23T00:24:39Z","due_on":"2099-12-31T05:00:00Z","closed_at":null},"comments":23,"created_at":"2013-12-06T22:14:16Z","updated_at":"2015-07-23T06:09:18Z","closed_at":null,"body":"<pre>What steps will reproduce the problem?\nIf possible, include a link to a program on play.golang.org.\n1. run `go test -coverprofile=coverage.out ./...`\n\nWhat is the expected output?\n\ncoverage.out contains coverage all of the specified packages\n\nWhat do you see instead?\n\n`cannot use test profile flag with multiple packages`\n\nWhich compiler are you using (5g, 6g, 8g, gccgo)?\n\n6g\n\nWhich operating system are you using?\n\nOS X 10.9\n\nWhich version are you using?  (run 'go version')\n\ngo version go1.2 darwin/amd64\n\nPlease provide any additional information below.\n\nIf I manually construct a coverage.out file from multiple packages, it seems to work\nfine:\n\n1. go test -coverprofile a.part ./a\n2. go test -coverprofile b.part ./b\n3. echo &quot;mode: set&quot; &gt;coverage.out\n4. grep -h -v &quot;mode: set&quot; *.part &gt;&gt;coverage.out\n5. go tool cover -html=coverage.out\n\nWhy can't `go test -coverprofile` do this automatically?</pre>"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/123987574","html_url":"https://github.com/golang/go/issues/6909#issuecomment-123987574","issue_url":"https://api.github.com/repos/golang/go/issues/6909","id":123987574,"user":{"login":"pierrre","id":131535,"avatar_url":"https://avatars.githubusercontent.com/u/131535?v=3","gravatar_id":"","url":"https://api.github.com/users/pierrre","html_url":"https://github.com/pierrre","followers_url":"https://api.github.com/users/pierrre/followers","following_url":"https://api.github.com/users/pierrre/following{/other_user}","gists_url":"https://api.github.com/users/pierrre/gists{/gist_id}","starred_url":"https://api.github.com/users/pierrre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierrre/subscriptions","organizations_url":"https://api.github.com/users/pierrre/orgs","repos_url":"https://api.github.com/users/pierrre/repos","events_url":"https://api.github.com/users/pierrre/events{/privacy}","received_events_url":"https://api.github.com/users/pierrre/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T06:09:18Z","updated_at":"2015-07-23T06:09:18Z","body":"You should try https://github.com/pierrre/gotestcover"}}