{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/1191","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1191/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1191/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1191/events","html_url":"https://github.com/commercialhaskell/stack/issues/1191","id":112007731,"number":1191,"title":"Add --coverage-only-library, make default coverage behavior simpler","user":{"login":"mgsloan","id":22570,"avatar_url":"https://avatars.githubusercontent.com/u/22570?v=3","gravatar_id":"","url":"https://api.github.com/users/mgsloan","html_url":"https://github.com/mgsloan","followers_url":"https://api.github.com/users/mgsloan/followers","following_url":"https://api.github.com/users/mgsloan/following{/other_user}","gists_url":"https://api.github.com/users/mgsloan/gists{/gist_id}","starred_url":"https://api.github.com/users/mgsloan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgsloan/subscriptions","organizations_url":"https://api.github.com/users/mgsloan/orgs","repos_url":"https://api.github.com/users/mgsloan/repos","events_url":"https://api.github.com/users/mgsloan/events{/privacy}","received_events_url":"https://api.github.com/users/mgsloan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-18T08:30:09Z","updated_at":"2015-10-18T14:24:38Z","closed_at":null,"body":"I'm revisiting https://github.com/commercialhaskell/stack/issues/634 (\"stack test --coverage shouldn't include tests in reports\")\r\n\r\n* It's causing issues on 7.10 - https://github.com/commercialhaskell/stack/issues/1181\r\n\r\n* It's common for packages to define their tests in such a way that they end up building the library directly with the test.\r\n\r\nIn light of this, I think it's a good idea to put this behavior behind a flag like `--coverage-only-library`."},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/149020128","html_url":"https://github.com/commercialhaskell/stack/issues/1191#issuecomment-149020128","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1191","id":149020128,"user":{"login":"mboes","id":51356,"avatar_url":"https://avatars.githubusercontent.com/u/51356?v=3","gravatar_id":"","url":"https://api.github.com/users/mboes","html_url":"https://github.com/mboes","followers_url":"https://api.github.com/users/mboes/followers","following_url":"https://api.github.com/users/mboes/following{/other_user}","gists_url":"https://api.github.com/users/mboes/gists{/gist_id}","starred_url":"https://api.github.com/users/mboes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mboes/subscriptions","organizations_url":"https://api.github.com/users/mboes/orgs","repos_url":"https://api.github.com/users/mboes/repos","events_url":"https://api.github.com/users/mboes/events{/privacy}","received_events_url":"https://api.github.com/users/mboes/received_events","type":"User","site_admin":false},"created_at":"2015-10-18T14:24:38Z","updated_at":"2015-10-18T14:24:38Z","body":"Fair enough. But I assume that, if enabled, one is likely to run into #1181?"}}