forked from qt-creator/qt-creator
Handle disabled gtests more correctly
Test summary now displays the number of disabled tests instead of having them printed as loose messages. Change-Id: I8ea736f789afc7c8ad6101a03fa5ca6428d92744 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
This commit is contained in:
@@ -344,9 +344,10 @@ void TestOutputReader::processGTestOutput()
|
||||
description.clear();
|
||||
} else if (disabledTests.exactMatch(line)) {
|
||||
auto testResult = new GTestResult();
|
||||
testResult->setResult(Result::MessageInternal);
|
||||
testResult->setResult(Result::MessageDisabledTests);
|
||||
int disabled = disabledTests.cap(1).toInt();
|
||||
testResult->setDescription(tr("You have %n disabled test(s).", 0, disabled));
|
||||
testResult->setLine(disabled); // misuse line property to hold number of disabled
|
||||
testResultCreated(testResult);
|
||||
description.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user