cmCTestTestHandler: indicate why a test did not run

This commit is contained in:
Ben Boeckel 2017-04-21 15:51:14 -04:00
parent 25a7f14fe2
commit 851b6c1595
11 changed files with 28 additions and 23 deletions

View File

@ -523,17 +523,22 @@ int cmCTestTestHandler::ProcessHandler()
if (!disabledTests.empty()) {
cmGeneratedFileStream ofs;
cmCTestLog(this->CTest, HANDLER_OUTPUT, std::endl
<< "The following tests are disabled and did not run:"
<< std::endl);
<< "The following tests did not run:" << std::endl);
this->StartLogFile("TestsDisabled", ofs);
const char* disabled_reason;
for (std::vector<cmCTestTestHandler::cmCTestTestResult>::iterator dtit =
disabledTests.begin();
dtit != disabledTests.end(); ++dtit) {
ofs << dtit->TestCount << ":" << dtit->Name << std::endl;
if (dtit->CompletionStatus == "Disabled") {
disabled_reason = "Disabled";
} else {
disabled_reason = "Skipped";
}
cmCTestLog(this->CTest, HANDLER_OUTPUT, "\t"
<< std::setw(3) << dtit->TestCount << " - " << dtit->Name
<< std::endl);
<< " (" << disabled_reason << ")" << std::endl);
}
}

View File

@ -7,5 +7,5 @@
+
Total Test time \(real\) = +[0-9.]+ sec
+
The following tests are disabled and did not run:
.*2 \- CleanupTest
The following tests did not run:
.*2 \- CleanupTest \(Disabled\)

View File

@ -2,8 +2,8 @@
+
Total Test time \(real\) = +[0-9.]+ sec
+
The following tests are disabled and did not run:
.*3 \- DisabledFailingTest
The following tests did not run:
.*3 \- DisabledFailingTest \(Disabled\)
+
The following tests FAILED:
.*2 \- FailingTest \(Failed\)

View File

@ -10,8 +10,8 @@
+
Total Test time \(real\) = +[0-9.]+ sec
+
The following tests are disabled and did not run:
.*2 \- DisabledTest
The following tests did not run:
.*2 \- DisabledTest \(Disabled\)
+
The following tests FAILED:
.*3 - NotRunTest \(Not Run\)

View File

@ -9,5 +9,5 @@
+
Total Test time \(real\) = +[0-9.]+ sec
+
The following tests are disabled and did not run:
.*2 \- DisabledTest
The following tests did not run:
.*2 \- DisabledTest \(Disabled\)

View File

@ -9,5 +9,5 @@
+
Total Test time \(real\) = +[0-9.]+ sec
+
The following tests are disabled and did not run:
.*2 \- DisabledTest
The following tests did not run:
.*2 \- DisabledTest \(Disabled\)

View File

@ -10,8 +10,8 @@
+
Total Test time \(real\) = +[0-9.]+ sec
+
The following tests are disabled and did not run:
.*2 \- DisabledTest
The following tests did not run:
.*2 \- DisabledTest \(Disabled\)
+
The following tests FAILED:
.*3 - NotRunTest \(Not Run\)

View File

@ -7,5 +7,5 @@
+
Total Test time \(real\) = +[0-9.]+ sec
+
The following tests are disabled and did not run:
.*2 \- CleanupTest
The following tests did not run:
.*2 \- CleanupTest \(Skipped\)

View File

@ -9,5 +9,5 @@
+
Total Test time \(real\) = +[0-9.]+ sec
+
The following tests are disabled and did not run:
.*2 \- SkipTest
The following tests did not run:
.*2 \- SkipTest \(Skipped\)

View File

@ -9,5 +9,5 @@
+
Total Test time \(real\) = +[0-9.]+ sec
+
The following tests are disabled and did not run:
.*2 \- SkipTest
The following tests did not run:
.*2 \- SkipTest \(Skipped\)

View File

@ -7,5 +7,5 @@
+
Total Test time \(real\) = +[0-9.]+ sec
+
The following tests are disabled and did not run:
.*2 \- SkipTest
The following tests did not run:
.*2 \- SkipTest \(Skipped\)