forked from qt-creator/qt-creator
AutoTest: Redo reporting of disabled tests
Provide a proper way of reporting disabled tests instead of the hacky one. Change-Id: Id3a775d57ac20c9db8ad0f504cb708021117aa2f Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -92,12 +92,7 @@ void GTestOutputReader::processOutputLine(const QByteArray &outputLineWithNewLin
|
||||
reportResult(testResult);
|
||||
m_description.clear();
|
||||
} else if (disabledTests.exactMatch(line)) {
|
||||
TestResultPtr testResult = TestResultPtr(new GTestResult(m_projectFile));
|
||||
testResult->setResult(Result::MessageDisabledTests);
|
||||
int disabled = disabledTests.cap(1).toInt();
|
||||
testResult->setDescription(tr("You have %n disabled test(s).", nullptr, disabled));
|
||||
testResult->setLine(disabled); // misuse line property to hold number of disabled
|
||||
reportResult(testResult);
|
||||
m_disabled = disabledTests.cap(1).toInt();
|
||||
m_description.clear();
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user