Title: Question: can I retrieve the success status of a test? · Issue #104 · cpp-testing/GUnit · GitHub
Open Graph Title: Question: can I retrieve the success status of a test? · Issue #104 · cpp-testing/GUnit
X Title: Question: can I retrieve the success status of a test? · Issue #104 · cpp-testing/GUnit
Description: Hello, I'd like to start by saying that since I switched from GoogleTest to GUnit, I have come to really enjoy its clarity and conciseness, so thanks for everything. I never looked back, until this week... I work in HPC and I'd like to u...
Open Graph Description: Hello, I'd like to start by saying that since I switched from GoogleTest to GUnit, I have come to really enjoy its clarity and conciseness, so thanks for everything. I never looked back, until this...
X Description: Hello, I'd like to start by saying that since I switched from GoogleTest to GUnit, I have come to really enjoy its clarity and conciseness, so thanks for everything. I never looked back, until ...
Opengraph URL: https://github.com/cpp-testing/GUnit/issues/104
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Question: can I retrieve the success status of a test?","articleBody":"Hello,\n\nI'd like to start by saying that since I switched from GoogleTest to GUnit, I have come to really enjoy its clarity and conciseness, so thanks for everything. I never looked back, until this week...\n\nI work in HPC and I'd like to use GUnit for tests where the application is distributed over multiple processes using MPI. Unsurprisingly, this does not work out of the box, as one process might pass a test while another fails the same test, leading to inconsistent results. I know there are solutions that exist out there (for example https://github.com/DLR-SC/googletest_mpi), but I really wish I could avoid going back to using GoogleTest.\n\nAfter some investigation, I figured that if I could retrieve the success/failure status of a test, then I could easily solve my problem:\n```cpp\nGTEST( \"Some test running in a distributed environment ){\n // All the usual stuff with assertions etc.\n\n bool test_is_successful = ... ; // this is the thing I'd need\n \n MPI_Allreduce( \u0026test_is_successful, ..., MPI_LAND, ... ); // Logical and reduction across all processes\n EXPECT( test_is_successful ); // Check that all processes succeded\n}\n```\nDo you think there is a way to make something like that work?\n\nBest regards,\nAlex","author":{"url":"https://github.com/dutkalex","@type":"Person","name":"dutkalex"},"datePublished":"2025-05-23T13:27:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/104/GUnit/issues/104"}
| 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:8c995c52-d434-0914-d804-84f79db84e91 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE08:10C5CB:2F4796F:3F52A37:696F2391 |
| html-safe-nonce | 51a1b5eab23dd0267950f81bc2f8e62c50603ee73ebdcaa68771566fff02397e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTA4OjEwQzVDQjoyRjQ3OTZGOjNGNTJBMzc6Njk2RjIzOTEiLCJ2aXNpdG9yX2lkIjoiNTU1MDg2MTE5MTc5MzMwNDQ5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c3a433b7a5e2feb30846e0a9758eaf3fbd6ff795db4eb8d110140b44167b4201 |
| hovercard-subject-tag | issue:3086381450 |
| 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/104/issue_layout |
| twitter:image | https://opengraph.githubassets.com/be0c87b445b79524002b85659962443fc003b9f168818207d39a101365a6b5d8/cpp-testing/GUnit/issues/104 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/be0c87b445b79524002b85659962443fc003b9f168818207d39a101365a6b5d8/cpp-testing/GUnit/issues/104 |
| og:image:alt | Hello, I'd like to start by saying that since I switched from GoogleTest to GUnit, I have come to really enjoy its clarity and conciseness, so thanks for everything. I never looked back, until this... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dutkalex |
| hostname | github.com |
| expected-hostname | github.com |
| None | b278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee |
| 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 | 39aed5006635ab6f45e6b77d23e73b08a00272a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width