Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b68f6f commit 980fbdfCopy full SHA for 980fbdf
test/doctest/doctest.h
@@ -5599,7 +5599,14 @@ namespace doctest
5599
if ((p->last < p->numTestsPassingFilters && p->first <= p->last) ||
5600
(p->first > p->numTestsPassingFilters))
5601
continue;
5602
-
+
5603
+ // Print the test name before running it.
5604
+ // This makes it easier to identify a which test a crash occurs in.
5605
+ if (!p->success) {
5606
+ std::printf("%s\n", data.m_name);
5607
+ std::fflush(stdout);
5608
+ }
5609
5610
// execute the test if it passes all the filtering
5611
{
5612
p->currentTest = &data;
0 commit comments