forked from qt-creator/qt-creator
AutoTest: Allow colored commandline output
Some test frameworks allow to print their output colorful to further indicate meanings of messages or test results. Provide a highlighter for the textual output of the results and enable this functionality for GTest and Boost UTF. Keep at least a small backdoor for overwriting this by the user. Fixes: QTCREATORBUG-22297 Change-Id: Iddd2b734416de807635d90c6519553081f7372f2 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -74,7 +74,7 @@ void GTestOutputReader::processOutputLine(const QByteArray &outputLine)
|
||||
static const QRegularExpression iterations("^Repeating all tests "
|
||||
"\\(iteration (\\d+)\\) \\. \\. \\.$");
|
||||
|
||||
const QString line = QString::fromLatin1(outputLine);
|
||||
const QString line = removeCommandlineColors(QString::fromLatin1(outputLine));
|
||||
if (line.trimmed().isEmpty())
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user