mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 11:22:21 -06:00
cmCTestTestHandler: indicate why a test did not run
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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\)
|
||||
|
||||
@@ -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\)
|
||||
|
||||
@@ -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\)
|
||||
|
||||
@@ -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\)
|
||||
|
||||
@@ -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\)
|
||||
|
||||
@@ -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\)
|
||||
|
||||
@@ -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\)
|
||||
|
||||
@@ -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\)
|
||||
|
||||
@@ -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\)
|
||||
|
||||
@@ -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\)
|
||||
|
||||
Reference in New Issue
Block a user