<div dir="ltr"><div style="font-family:georgia,serif;display:inline" class="gmail_default">​Hi all,<br><br></div><div style="font-family:georgia,serif;display:inline" class="gmail_default">I'm a new poster on this list. It's nice to meet you.<br></div><div style="font-family:georgia,serif;display:inline" class="gmail_default"><br>​</div>I<div style="font-family:georgia,serif;display:inline" class="gmail_default">​ was very excited when I came across the new support for GoogleTest test discovery in CMake (<a href="https://blog.kitware.com/dynamic-google-test-discovery-in-cmake-3-10/">https://blog.kitware.com/dynamic-google-test-discovery-in-cmake-3-10/</a>). However, this new approach and the older one both play very poorly with any of my tests that require fixtures.<br><br></div><div style="font-family:georgia,serif;display:inline" class="gmail_default">The situation I have is this: I have about a hundred tests defined which rely on a socket connection that has to pass a few messages each time it's initialized. I define a static test fixture in GoogleTest to make the connection to start the socket connection and initialize the server, then run all of the tests and clean up once when they're all done.<br><br></div><div style="font-family:georgia,serif;display:inline" class="gmail_default">The problem is that when I use `gtest_discover_tests()` (or `gtest_add_tests()`), CTest breaks all of the tests apart into separate processes, adding a couple seconds overhead to each test (the tests themselves take on average a millisecond to run). Perhaps that's still acceptable for now where I've only got ~100 tests that depend on that fixture, but I worry my list of tests will still grow, and it smells like that penalty should be avoidable somehow.<br><br></div><div style="font-family:georgia,serif;display:inline" class="gmail_default">I don't necessarily need to be able to see the output of every CTest (though that's a nice-to-have). What I really need is to be able to see all of the test results in my project CDash. Is there any way to have GoogleTest supply its own test results to CDash such that the GTest executable is only run once, but all of the individual test results can be reported?<br><br></div><div style="font-family:georgia,serif;display:inline" class="gmail_default">Thanks!<br><br></div><div style="font-family:georgia,serif;display:inline" class="gmail_default">Chad<br></div></div>