{"action":"created","issue":{"url":"https://api.github.com/repos/cpputest/cpputest/issues/563","labels_url":"https://api.github.com/repos/cpputest/cpputest/issues/563/labels{/name}","comments_url":"https://api.github.com/repos/cpputest/cpputest/issues/563/comments","events_url":"https://api.github.com/repos/cpputest/cpputest/issues/563/events","html_url":"https://github.com/cpputest/cpputest/issues/563","id":65727250,"number":563,"title":"Printing out all available unit test group names without running them","user":{"login":"mmidor","id":11757455,"avatar_url":"https://avatars.githubusercontent.com/u/11757455?v=3","gravatar_id":"","url":"https://api.github.com/users/mmidor","html_url":"https://github.com/mmidor","followers_url":"https://api.github.com/users/mmidor/followers","following_url":"https://api.github.com/users/mmidor/following{/other_user}","gists_url":"https://api.github.com/users/mmidor/gists{/gist_id}","starred_url":"https://api.github.com/users/mmidor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmidor/subscriptions","organizations_url":"https://api.github.com/users/mmidor/orgs","repos_url":"https://api.github.com/users/mmidor/repos","events_url":"https://api.github.com/users/mmidor/events{/privacy}","received_events_url":"https://api.github.com/users/mmidor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-01T16:39:23Z","updated_at":"2015-04-03T05:31:07Z","closed_at":null,"body":"It would be very helpfull to generate list of all test groups in executable. Space-separated I think is the best choice.\r\nThen I could fetch list of groups by passing eg. -pg parameter to executable, and then run every group of test passing -g <groupname> to the executable.\r\nWill be very helpfull when working with CMake and CTest.\r\n\r\nI have already looked into the code and it looks to be quite easy to implement.\r\nEven I can do this ;)"},"comment":{"url":"https://api.github.com/repos/cpputest/cpputest/issues/comments/89168696","html_url":"https://github.com/cpputest/cpputest/issues/563#issuecomment-89168696","issue_url":"https://api.github.com/repos/cpputest/cpputest/issues/563","id":89168696,"user":{"login":"arstrube","id":4686469,"avatar_url":"https://avatars.githubusercontent.com/u/4686469?v=3","gravatar_id":"","url":"https://api.github.com/users/arstrube","html_url":"https://github.com/arstrube","followers_url":"https://api.github.com/users/arstrube/followers","following_url":"https://api.github.com/users/arstrube/following{/other_user}","gists_url":"https://api.github.com/users/arstrube/gists{/gist_id}","starred_url":"https://api.github.com/users/arstrube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arstrube/subscriptions","organizations_url":"https://api.github.com/users/arstrube/orgs","repos_url":"https://api.github.com/users/arstrube/repos","events_url":"https://api.github.com/users/arstrube/events{/privacy}","received_events_url":"https://api.github.com/users/arstrube/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T05:31:07Z","updated_at":"2015-04-03T05:31:07Z","body":"Maybe, if we go for this, we should name the switches `-lg` and `ln`as we currently have `-g` and `-n`already, not `-t`.\r\n\r\nI am a little hesitant about a feature like that as this is not really the job a unit testing framework. In my opinion this is where someone might create a supporting script rather than add a feature to CppUTest.\r\n\r\nFor example, the CppUTest Eclipse plugin does this very nicely. The important feature in CppUTest is that it can take an arbitrary list of tests and groups as input, and that already exists. My suggestion would be to share a supporting script rather than add this feature to CppUTest itself.\r\n\r\nRemember also that we have the (lesser know) feature of feeding the -v ouput directly back to a test run, e.g. TEST(group1, test1) TEST(group1, test2) TEST(group4, test1). For example, one can use this to re-run all failed tests.\r\n\r\nSince a script would be needed in any case to extract from the lists of tests and the list of groups which tests to run, I think that script could be based on -v output instead."}}