#include <qtestlog_p.h>
|
| static void | enterTestFunction (const char *function) |
| static void | leaveTestFunction () |
| static void | enterTestData (QTestData *data) |
| static void | addPass (const char *msg) |
| static void | addFail (const char *msg, const char *file, int line) |
| static void | addXFail (const char *msg, const char *file, int line) |
| static void | addXPass (const char *msg, const char *file, int line) |
| static void | addBPass (const char *msg) |
| static void | addBFail (const char *msg, const char *file, int line) |
| static void | addBXPass (const char *msg, const char *file, int line) |
| static void | addBXFail (const char *msg, const char *file, int line) |
| static void | addSkip (const char *msg, const char *file, int line) |
| static void | addBenchmarkResult (const QList< QBenchmarkResult > &result) |
| static void | addBenchmarkResults (const QList< QBenchmarkResult > &result) |
| static void | ignoreMessage (QtMsgType type, const char *msg) |
| static void | ignoreMessage (QtMsgType type, const QRegularExpression &expression) |
| static void | failOnWarning () |
| static void | failOnWarning (const char *msg) |
| static void | failOnWarning (const QRegularExpression &expression) |
| static int | unhandledIgnoreMessages () |
| static void | printUnhandledIgnoreMessages () |
| static void | clearIgnoreMessages () |
| static void | clearFailOnWarnings () |
| static void | clearCurrentTestState () |
| static void | warn (const char *msg, const char *file, int line) |
| static void | info (const char *msg, const char *file, int line) |
| static void | startLogging () |
| static void | stopLogging () |
| static void | addLogger (LogMode mode, const char *filename) |
| static void | addLogger (std::unique_ptr< QAbstractTestLogger > logger) |
| static bool | hasLoggers () |
| static bool | isRepeatSupported () |
| static bool | loggerUsingStdout () |
| static void | setVerboseLevel (int level) |
| static int | verboseLevel () |
| static void | setMaxWarnings (int max) |
| static void | setPrintAvailableTagsMode () |
| static int | passCount () |
| static int | failCount () |
| static int | skipCount () |
| static int | blacklistCount () |
| static int | totalCount () |
| static void | resetCounters () |
| static void | setInstalledTestCoverage (bool installed) |
| static bool | installedTestCoverage () |
| static qint64 | nsecsTotalTime () |
| static qreal | msecsTotalTime () |
| static qint64 | nsecsFunctionTime () |
| static qreal | msecsFunctionTime () |
Definition at line 33 of file qtestlog_p.h.
◆ LogMode
| Enumerator |
|---|
| Plain | |
| XML | |
| LightXML | |
| JUnitXML | |
| CSV | |
| TeamCity | |
| TAP | |
Definition at line 41 of file qtestlog_p.h.
◆ QTestLog()
◆ ~QTestLog()
◆ addBenchmarkResult()
◆ addBenchmarkResults()
◆ addBFail()
| void QTestLog::addBFail |
( |
const char * | msg, |
|
|
const char * | file, |
|
|
int | line ) |
|
static |
◆ addBPass()
| void QTestLog::addBPass |
( |
const char * | msg | ) |
|
|
static |
◆ addBXFail()
| void QTestLog::addBXFail |
( |
const char * | msg, |
|
|
const char * | file, |
|
|
int | line ) |
|
static |
◆ addBXPass()
| void QTestLog::addBXPass |
( |
const char * | msg, |
|
|
const char * | file, |
|
|
int | line ) |
|
static |
◆ addFail()
| void QTestLog::addFail |
( |
const char * | msg, |
|
|
const char * | file, |
|
|
int | line ) |
|
static |
◆ addLogger() [1/2]
| void QTestLog::addLogger |
( |
LogMode | mode, |
|
|
const char * | filename ) |
|
static |
◆ addLogger() [2/2]
Adds a new logger to the set of loggers that will be used to report incidents and messages during testing.
Definition at line 659 of file qtestlog.cpp.
◆ addPass()
| void QTestLog::addPass |
( |
const char * | msg | ) |
|
|
static |
◆ addSkip()
| void QTestLog::addSkip |
( |
const char * | msg, |
|
|
const char * | file, |
|
|
int | line ) |
|
static |
◆ addXFail()
| void QTestLog::addXFail |
( |
const char * | msg, |
|
|
const char * | file, |
|
|
int | line ) |
|
static |
◆ addXPass()
| void QTestLog::addXPass |
( |
const char * | msg, |
|
|
const char * | file, |
|
|
int | line ) |
|
static |
◆ blacklistCount()
| int QTestLog::blacklistCount |
( |
| ) |
|
|
static |
◆ clearCurrentTestState()
| void QTestLog::clearCurrentTestState |
( |
| ) |
|
|
static |
◆ clearFailOnWarnings()
| void QTestLog::clearFailOnWarnings |
( |
| ) |
|
|
static |
◆ clearIgnoreMessages()
| void QTestLog::clearIgnoreMessages |
( |
| ) |
|
|
static |
◆ enterTestData()
◆ enterTestFunction()
| void QTestLog::enterTestFunction |
( |
const char * | function | ) |
|
|
static |
◆ failCount()
| int QTestLog::failCount |
( |
| ) |
|
|
static |
◆ failOnWarning() [1/3]
| void QTestLog::failOnWarning |
( |
| ) |
|
|
static |
◆ failOnWarning() [2/3]
| void QTestLog::failOnWarning |
( |
const char * | msg | ) |
|
|
static |
◆ failOnWarning() [3/3]
◆ hasLoggers()
| bool QTestLog::hasLoggers |
( |
| ) |
|
|
static |
◆ ignoreMessage() [1/2]
| void QTestLog::ignoreMessage |
( |
QtMsgType | type, |
|
|
const char * | msg ) |
|
static |
◆ ignoreMessage() [2/2]
◆ info()
| void QTestLog::info |
( |
const char * | msg, |
|
|
const char * | file, |
|
|
int | line ) |
|
static |
◆ installedTestCoverage()
| bool QTestLog::installedTestCoverage |
( |
| ) |
|
|
static |
◆ isRepeatSupported()
| bool QTestLog::isRepeatSupported |
( |
| ) |
|
|
static |
Returns true if all loggers support repeated test runs
Definition at line 675 of file qtestlog.cpp.
◆ leaveTestFunction()
| void QTestLog::leaveTestFunction |
( |
| ) |
|
|
static |
◆ loggerUsingStdout()
| bool QTestLog::loggerUsingStdout |
( |
| ) |
|
|
static |
◆ msecsFunctionTime()
| qreal QTestLog::msecsFunctionTime |
( |
| ) |
|
|
inlinestatic |
◆ msecsTotalTime()
| qreal QTestLog::msecsTotalTime |
( |
| ) |
|
|
inlinestatic |
◆ nsecsFunctionTime()
| qint64 QTestLog::nsecsFunctionTime |
( |
| ) |
|
|
static |
◆ nsecsTotalTime()
| qint64 QTestLog::nsecsTotalTime |
( |
| ) |
|
|
static |
◆ passCount()
| int QTestLog::passCount |
( |
| ) |
|
|
static |
◆ printUnhandledIgnoreMessages()
| void QTestLog::printUnhandledIgnoreMessages |
( |
| ) |
|
|
static |
◆ resetCounters()
| void QTestLog::resetCounters |
( |
| ) |
|
|
static |
◆ setInstalledTestCoverage()
| void QTestLog::setInstalledTestCoverage |
( |
bool | installed | ) |
|
|
static |
◆ setMaxWarnings()
| void QTestLog::setMaxWarnings |
( |
int | max | ) |
|
|
static |
◆ setPrintAvailableTagsMode()
| void QTestLog::setPrintAvailableTagsMode |
( |
| ) |
|
|
static |
◆ setVerboseLevel()
| void QTestLog::setVerboseLevel |
( |
int | level | ) |
|
|
static |
◆ skipCount()
| int QTestLog::skipCount |
( |
| ) |
|
|
static |
◆ startLogging()
| void QTestLog::startLogging |
( |
| ) |
|
|
static |
◆ stopLogging()
| void QTestLog::stopLogging |
( |
| ) |
|
|
static |
◆ totalCount()
| int QTestLog::totalCount |
( |
| ) |
|
|
static |
◆ unhandledIgnoreMessages()
| int QTestLog::unhandledIgnoreMessages |
( |
| ) |
|
|
static |
◆ verboseLevel()
| int QTestLog::verboseLevel |
( |
| ) |
|
|
static |
◆ warn()
| void QTestLog::warn |
( |
const char * | msg, |
|
|
const char * | file, |
|
|
int | line ) |
|
static |
◆ failOnWarning() [1/4]
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
- Since
- 6.8
Appends a test failure to the test log if any warning is output.
- See also
- failOnWarning(const char *)
◆ failOnWarning() [2/4]
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
- Since
- 6.8
Appends a test failure to the test log if any warning is output.
- See also
- failOnWarning(const char *)
◆ failOnWarning() [3/4]
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
- Since
- 6.3
Appends a test failure to the test log if the message is output.
- See also
- failOnWarning()
◆ failOnWarning() [4/4]
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
- Since
- 6.3
Appends a test failure to the test log if the message is output.
- See also
- failOnWarning()
The documentation for this class was generated from the following files: