Title: Expose SHOULD("XXX") sub-targets explicitly callable from the shell · Issue #73 · cpp-testing/GUnit · GitHub
Open Graph Title: Expose SHOULD("XXX") sub-targets explicitly callable from the shell · Issue #73 · cpp-testing/GUnit
X Title: Expose SHOULD("XXX") sub-targets explicitly callable from the shell · Issue #73 · cpp-testing/GUnit
Description: In short: SHOULD("") tests should also be exposed as single targets on the shell and they 'could' eventually also show up as individual tests in the tests run. At least they should be callable individually! Given this example: GTEST(MYFo...
Open Graph Description: In short: SHOULD("") tests should also be exposed as single targets on the shell and they 'could' eventually also show up as individual tests in the tests run. At least they should be callable indi...
X Description: In short: SHOULD("") tests should also be exposed as single targets on the shell and they 'could' eventually also show up as individual tests in the tests run. At least they shoul...
Opengraph URL: https://github.com/cpp-testing/GUnit/issues/73
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Expose SHOULD(\"XXX\") sub-targets explicitly callable from the shell","articleBody":"In short: SHOULD(\"\") tests should also be exposed as single targets on the shell and they 'could' eventually also show up as individual tests in the tests run. At least they should be callable individually!\r\n\r\nGiven this example:\r\n\r\n```\r\nGTEST(MYFooTest, \"MyBarTest\") {\r\n\r\n... some setup stuff ...\r\n\r\nSHOULD(\"foo\") {\r\n\r\n}\r\nSHOULD(\"bar\") {\r\n\r\n}\r\n```\r\n\r\nI'd like to call SHOULD tests explicitly!\r\n\r\nUsing GUnit one can run all tests:\r\n\r\n ./mytest --gunit_filter=\"*\"\r\n\r\nOr just a subset:\r\n\r\n ./mytest --gunit_filter=\"MYFooTest.*\"\r\n\r\nOr one explicit test:\r\n\r\n ./mytest --gunit_filter=\"MYFooTest.MyBarTest\"\r\n\r\nBut one cannot call a SHOULD:\r\n\r\n ./mytest --gunit_filter=\"MYFooTest.MyBarTest.foo\"\r\n\r\n# why?\r\n\r\nIn our code-base we have like 10 SHOULD calls and if one fails it is often hard to see which one does as the output can be quite huge. So I basically comment all n-1 SHOULD tests and uncomment them one by one to work them down. Which is of course total overkill.","author":{"url":"https://github.com/qknight","@type":"Person","name":"qknight"},"datePublished":"2022-03-18T10:18:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/73/GUnit/issues/73"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:264de0cd-2034-3482-5507-9b566f55a1ce |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 966C:271105:B11C9B:FB58DB:696F911E |
| html-safe-nonce | 22169477c155edce8c1078e158f90324484211a97caa84ece4d2d87f81fa6fc3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjZDOjI3MTEwNTpCMTFDOUI6RkI1OERCOjY5NkY5MTFFIiwidmlzaXRvcl9pZCI6IjMzOTU0NDI2MzQ2NjM4OTc5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 77b916f32e12ac8faa4d32afa24653fd5a650e22ec24de8f839f659ad73876bd |
| hovercard-subject-tag | issue:1173422329 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cpp-testing/GUnit/73/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7555c6fcc9f022497b58abf5c01f167c1bd5c2d2a0d9821793a2a3ca3afe7834/cpp-testing/GUnit/issues/73 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7555c6fcc9f022497b58abf5c01f167c1bd5c2d2a0d9821793a2a3ca3afe7834/cpp-testing/GUnit/issues/73 |
| og:image:alt | In short: SHOULD("") tests should also be exposed as single targets on the shell and they 'could' eventually also show up as individual tests in the tests run. At least they should be callable indi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | qknight |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0ca8d8c65612640b9a1a588b3eed68222ca723ed2d028b18fe81b28936d535eb |
| turbo-cache-control | no-preview |
| go-import | github.com/cpp-testing/GUnit git https://github.com/cpp-testing/GUnit.git |
| octolytics-dimension-user_id | 24781083 |
| octolytics-dimension-user_login | cpp-testing |
| octolytics-dimension-repository_id | 77401922 |
| octolytics-dimension-repository_nwo | cpp-testing/GUnit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 77401922 |
| octolytics-dimension-repository_network_root_nwo | cpp-testing/GUnit |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 95f60616ce2765d1114fe6da4af405a58c6d26d2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width