{"action":"created","issue":{"url":"https://api.github.com/repos/catchorg/Catch2/issues/1312","repository_url":"https://api.github.com/repos/catchorg/Catch2","labels_url":"https://api.github.com/repos/catchorg/Catch2/issues/1312/labels{/name}","comments_url":"https://api.github.com/repos/catchorg/Catch2/issues/1312/comments","events_url":"https://api.github.com/repos/catchorg/Catch2/issues/1312/events","html_url":"https://github.com/catchorg/Catch2/issues/1312","id":333001270,"node_id":"MDU6SXNzdWUzMzMwMDEyNzA=","number":1312,"title":"Coverage Report","user":{"login":"Abhisek-","id":9455582,"node_id":"MDQ6VXNlcjk0NTU1ODI=","avatar_url":"https://avatars1.githubusercontent.com/u/9455582?v=4","gravatar_id":"","url":"https://api.github.com/users/Abhisek-","html_url":"https://github.com/Abhisek-","followers_url":"https://api.github.com/users/Abhisek-/followers","following_url":"https://api.github.com/users/Abhisek-/following{/other_user}","gists_url":"https://api.github.com/users/Abhisek-/gists{/gist_id}","starred_url":"https://api.github.com/users/Abhisek-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Abhisek-/subscriptions","organizations_url":"https://api.github.com/users/Abhisek-/orgs","repos_url":"https://api.github.com/users/Abhisek-/repos","events_url":"https://api.github.com/users/Abhisek-/events{/privacy}","received_events_url":"https://api.github.com/users/Abhisek-/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-16T17:10:43Z","updated_at":"2018-06-18T11:15:11Z","closed_at":null,"author_association":"NONE","body":"## Description\r\n<!--\r\nIf your issue is a bugreport, this means describing what you did,\r\nwhat did you want to happen and what actually did happen.\r\n\r\nIf your issue is a feature request, describe the feature and why do you\r\nwant it.\r\n-->\r\n**Feature Request**: Can `Catch2` show **coverage reports**.\r\n\r\nIt will be super helpful if we can see:\r\n\r\n* What percentage of the code is covered by the test cases.\r\n* What part of the code is still remaining to test.\r\n* Things like that...\r\n\r\nI have searched in the doc, but I couldn't find if there is a way to show that. So I'm assuming this feature is not available.\r\nI know `pytest`(`python` test suite) can show coverage report. It would be super helpful if this test suite can also show coverage report.\r\n\r\n### Steps to reproduce\r\n<!--\r\nThis is only relevant for bug reports, but if you do have one,\r\nplease provide a minimal set of steps to reproduce the problem.\r\n\r\nUsually this means providing a small and self-contained code using Catch\r\nand specifying compiler flags/tools used if relevant.\r\n-->\r\n\r\n\r\n### Extra information\r\n<!--\r\nFill in any extra information that might be important for your issue.\r\n\r\nIf your issue is a bugreport, definitely fill out at least the following.\r\n-->\r\n* Catch version: **v2.2.3**\r\n* Operating System: **Ubuntu 16.04 LTS Intel Core i5 64 bit**\r\n* Compiler+version: **g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609**\r\n"},"comment":{"url":"https://api.github.com/repos/catchorg/Catch2/issues/comments/398021073","html_url":"https://github.com/catchorg/Catch2/issues/1312#issuecomment-398021073","issue_url":"https://api.github.com/repos/catchorg/Catch2/issues/1312","id":398021073,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODAyMTA3Mw==","user":{"login":"horenmar","id":9026413,"node_id":"MDQ6VXNlcjkwMjY0MTM=","avatar_url":"https://avatars1.githubusercontent.com/u/9026413?v=4","gravatar_id":"","url":"https://api.github.com/users/horenmar","html_url":"https://github.com/horenmar","followers_url":"https://api.github.com/users/horenmar/followers","following_url":"https://api.github.com/users/horenmar/following{/other_user}","gists_url":"https://api.github.com/users/horenmar/gists{/gist_id}","starred_url":"https://api.github.com/users/horenmar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/horenmar/subscriptions","organizations_url":"https://api.github.com/users/horenmar/orgs","repos_url":"https://api.github.com/users/horenmar/repos","events_url":"https://api.github.com/users/horenmar/events{/privacy}","received_events_url":"https://api.github.com/users/horenmar/received_events","type":"User","site_admin":false},"created_at":"2018-06-18T11:15:11Z","updated_at":"2018-06-18T11:15:11Z","author_association":"MEMBER","body":"This feature is unavailable and is very much not in scope. The problem with providing code coverage for C++ is that it is surprisingly complex. The most popular way of doing so on Linux is [gcov](https://gcc.gnu.org/onlinedocs/gcc-8.1.0/gcc/Gcov.html), which requires special compilation flags to be provided when compiling the binary, which means that it is way out of scope for a test framework.\r\n\r\nOn Windows the situation is somewhat different, as the simplest way of collecting code coverage info is [OpenCppCoverage](https://github.com/OpenCppCoverage/OpenCppCoverage), which does not require special compilation flags (it still requires debug info though), but it also provides worse quality of information -- it has to figure out which lines are potentially executable, versus which aren't, from the debug info."}}
{"actor":{"display_login":"horenmar"}}