{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/22899","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/22899/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/22899/comments","events_url":"https://api.github.com/repos/docker/docker/issues/22899/events","html_url":"https://github.com/docker/docker/issues/22899","id":156231928,"number":22899,"title":"Update documentation: Add how to generate HTML coverage report from unit tests","user":{"login":"alexellis","id":6358735,"avatar_url":"https://avatars.githubusercontent.com/u/6358735?v=3","gravatar_id":"","url":"https://api.github.com/users/alexellis","html_url":"https://github.com/alexellis","followers_url":"https://api.github.com/users/alexellis/followers","following_url":"https://api.github.com/users/alexellis/following{/other_user}","gists_url":"https://api.github.com/users/alexellis/gists{/gist_id}","starred_url":"https://api.github.com/users/alexellis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexellis/subscriptions","organizations_url":"https://api.github.com/users/alexellis/orgs","repos_url":"https://api.github.com/users/alexellis/repos","events_url":"https://api.github.com/users/alexellis/events{/privacy}","received_events_url":"https://api.github.com/users/alexellis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-23T09:02:53Z","updated_at":"2016-05-24T04:08:57Z","closed_at":null,"body":"<!--\r\nIf you are reporting a new issue, make sure that we do not have any duplicates\r\nalready open. You can ensure this by searching the issue list for this\r\nrepository. If there is a duplicate, please close your issue and add a comment\r\nto the existing issue instead.\r\n\r\nIf you suspect your issue is a bug, please edit your issue description to\r\ninclude the BUG REPORT INFORMATION shown below. If you fail to provide this\r\ninformation within 7 days, we cannot debug your issue and will close it. We\r\nwill, however, reopen it if you later provide the information.\r\n\r\nFor more information about reporting issues, see\r\nhttps://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues\r\n\r\n---------------------------------------------------\r\nBUG REPORT INFORMATION\r\n---------------------------------------------------\r\nUse the commands below to provide key information from your environment:\r\nYou do NOT have to include this information if this is a FEATURE REQUEST\r\n-->\r\n\r\n**Steps to reproduce the issue:**\r\n\r\nWhen making `test-unit` I saw a lot of useful information about code paths and coverage percentages. I'd like to generate a HTML coverage report to view in a browser and see if I can contribute by increasing coverage somewhere. I.e.\r\n\r\n```\r\n---> Making bundle: test-unit (in bundles/1.12.0-dev/test-unit)\r\nSun May 22 16:22:42 UTC 2016\r\nok  \tgithub.com/docker/docker/api\t0.026s\tcoverage: 92.5% of statements\r\nok  \tgithub.com/docker/docker/api/client\t0.010s\tcoverage: 1.3% of statements\r\nok  \tgithub.com/docker/docker/api/client/formatter\t0.016s\tcoverage: 93.5% of statements\r\nok  \tgithub.com/docker/docker/api/client/inspect\t0.011s\tcoverage: 92.7% of statements\r\nok  \tgithub.com/docker/docker/api/server\t0.008s\tcoverage: 6.7% of statements\r\nok  \tgithub.com/docker/docker/api/server/httputils\t0.012s\tcoverage: 19.2% of statements\r\nok  \tgithub.com/docker/docker/api/server/middleware\t0.020s\tcoverage: 22.0% of statements\r\n```\r\n\r\n**Describe the results you received:**\r\n\r\nPercentages on the console\r\n\r\n**Describe the results you expected:**\r\n\r\nAn option or flag described at https://docs.docker.com/opensource/project/test-and-docs/ to give a html report such as `go tool cover -html=coverage.out` found at: \r\n\r\nhttps://blog.golang.org/cover\r\n\r\nSince the tests are run through Make and hack/make.sh I was not sure if it was easy to pass the flag in through TESTARGS or TESTFLAGS and also wasn't sure where the appropriate place was to ask a question like this.\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/221161560","html_url":"https://github.com/docker/docker/issues/22899#issuecomment-221161560","issue_url":"https://api.github.com/repos/docker/docker/issues/22899","id":221161560,"user":{"login":"AkihiroSuda","id":9248427,"avatar_url":"https://avatars.githubusercontent.com/u/9248427?v=3","gravatar_id":"","url":"https://api.github.com/users/AkihiroSuda","html_url":"https://github.com/AkihiroSuda","followers_url":"https://api.github.com/users/AkihiroSuda/followers","following_url":"https://api.github.com/users/AkihiroSuda/following{/other_user}","gists_url":"https://api.github.com/users/AkihiroSuda/gists{/gist_id}","starred_url":"https://api.github.com/users/AkihiroSuda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AkihiroSuda/subscriptions","organizations_url":"https://api.github.com/users/AkihiroSuda/orgs","repos_url":"https://api.github.com/users/AkihiroSuda/repos","events_url":"https://api.github.com/users/AkihiroSuda/events{/privacy}","received_events_url":"https://api.github.com/users/AkihiroSuda/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T04:08:57Z","updated_at":"2016-05-24T04:08:57Z","body":"opened PR https://github.com/docker/docker/pull/22930\r\n"}}
{"actor":{"display_login":"AkihiroSuda"}}