forked from qt-creator/qt-creator
AutoTest: Add optional verbosity for Qt tests
Add options allowing verbose benchmarks and logging of signals and slots inside Qt tests. Beside this fixing a typo (recognition of results of type info) inside the plain text reader. Change-Id: Iaba7112c55bf30213584e56858d096c8f78307d0 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -31,6 +31,8 @@ namespace Internal {
|
||||
static const char metricsKey[] = "Metrics";
|
||||
static const char noCrashhandlerKey[] = "NoCrashhandlerOnDebug";
|
||||
static const char useXMLOutputKey[] = "UseXMLOutput";
|
||||
static const char verboseBenchKey[] = "VerboseBench";
|
||||
static const char logSignalsSlotsKey[] = "LogSignalsSlots";
|
||||
|
||||
static MetricsType intToMetrics(int value)
|
||||
{
|
||||
@@ -60,6 +62,8 @@ void QtTestSettings::fromFrameworkSettings(const QSettings *s)
|
||||
metrics = intToMetrics(s->value(metricsKey, Walltime).toInt());
|
||||
noCrashHandler = s->value(noCrashhandlerKey, true).toBool();
|
||||
useXMLOutput = s->value(useXMLOutputKey, true).toBool();
|
||||
verboseBench = s->value(verboseBenchKey, false).toBool();
|
||||
logSignalsSlots = s->value(logSignalsSlotsKey, false).toBool();
|
||||
}
|
||||
|
||||
void QtTestSettings::toFrameworkSettings(QSettings *s) const
|
||||
@@ -67,6 +71,8 @@ void QtTestSettings::toFrameworkSettings(QSettings *s) const
|
||||
s->setValue(metricsKey, metrics);
|
||||
s->setValue(noCrashhandlerKey, noCrashHandler);
|
||||
s->setValue(useXMLOutputKey, useXMLOutput);
|
||||
s->setValue(verboseBenchKey, verboseBench);
|
||||
s->setValue(logSignalsSlotsKey, logSignalsSlots);
|
||||
}
|
||||
|
||||
QString QtTestSettings::metricsTypeToOption(const MetricsType type)
|
||||
|
||||
Reference in New Issue
Block a user