Qt 4.8
|
#include <qtestlogger_p.h>
Public Types | |
enum | TestLoggerFormat { TLF_XML = 0, TLF_LightXml = 1, TLF_XunitXml = 2 } |
Public Types inherited from QAbstractTestLogger | |
enum | IncidentTypes { Pass, XFail, Fail, XPass } |
enum | MessageTypes { Warn, QWarning, QDebug, QSystem, QFatal, Skip, Info } |
Public Functions | |
void | addBenchmarkResult (const QBenchmarkResult &result) |
void | addIncident (IncidentTypes type, const char *description, const char *file=0, int line=0) |
void | addMessage (MessageTypes type, const char *message, const char *file=0, int line=0) |
void | addTag (QTestElement *element) |
void | enterTestFunction (const char *function) |
int | errorCount () const |
int | failureCount () const |
bool | hasRandomSeed () const |
int | infoCount () const |
void | leaveTestFunction () |
TestLoggerFormat | logFormat () |
int | passCount () const |
int | qdebugCount () const |
int | qfatalCount () const |
QTestLogger (int fm=0) | |
int | qwarnCount () const |
unsigned int | randomSeed () const |
void | registerRandomSeed (unsigned int seed) |
void | setLogFormat (TestLoggerFormat fm) |
int | skipCount () const |
void | startLogging () |
void | stopLogging () |
int | systemCount () const |
int | warningCount () const |
~QTestLogger () | |
Public Functions inherited from QAbstractTestLogger | |
QAbstractTestLogger () | |
virtual | ~QAbstractTestLogger () |
Properties | |
QTestElement * | currentLogElement |
int | errorCounter |
QTestElement * | errorLogElement |
int | failureCounter |
QTestFileLogger * | filelogger |
TestLoggerFormat | format |
bool | hasRandomSeed_ |
int | infoCounter |
QTestElement * | listOfTestcases |
QTestBasicStreamer * | logFormatter |
int | passCounter |
int | qdebugCounter |
int | qfatalCounter |
int | qwarnCounter |
unsigned int | randomSeed_ |
int | skipCounter |
int | systemCounter |
int | testCounter |
int | warningCounter |
Additional Inherited Members | |
Static Public Functions inherited from QAbstractTestLogger | |
static bool | isTtyOutput () |
static void | outputString (const char *msg) |
Definition at line 64 of file qtestlogger_p.h.
Enumerator | |
---|---|
TLF_XML | |
TLF_LightXml | |
TLF_XunitXml |
Definition at line 70 of file qtestlogger_p.h.
QTestLogger::QTestLogger | ( | int | fm = 0 | ) |
Definition at line 57 of file qtestlogger.cpp.
QTestLogger::~QTestLogger | ( | ) |
Definition at line 70 of file qtestlogger.cpp.
|
virtual |
Implements QAbstractTestLogger.
Definition at line 271 of file qtestlogger.cpp.
|
virtual |
Implements QAbstractTestLogger.
Definition at line 184 of file qtestlogger.cpp.
|
virtual |
Implements QAbstractTestLogger.
Definition at line 309 of file qtestlogger.cpp.
Referenced by addIncident().
void QTestLogger::addTag | ( | QTestElement * | element | ) |
Definition at line 288 of file qtestlogger.cpp.
Referenced by addIncident(), and addMessage().
|
virtual |
Implements QAbstractTestLogger.
Definition at line 167 of file qtestlogger.cpp.
int QTestLogger::errorCount | ( | ) | const |
Definition at line 392 of file qtestlogger.cpp.
int QTestLogger::failureCount | ( | ) | const |
Definition at line 387 of file qtestlogger.cpp.
bool QTestLogger::hasRandomSeed | ( | ) | const |
Definition at line 443 of file qtestlogger.cpp.
Referenced by QTestXmlStreamer::output(), and stopLogging().
int QTestLogger::infoCount | ( | ) | const |
Definition at line 427 of file qtestlogger.cpp.
|
virtual |
QTestLogger::TestLoggerFormat QTestLogger::logFormat | ( | ) |
Definition at line 377 of file qtestlogger.cpp.
int QTestLogger::passCount | ( | ) | const |
Definition at line 382 of file qtestlogger.cpp.
int QTestLogger::qdebugCount | ( | ) | const |
Definition at line 412 of file qtestlogger.cpp.
int QTestLogger::qfatalCount | ( | ) | const |
Definition at line 422 of file qtestlogger.cpp.
int QTestLogger::qwarnCount | ( | ) | const |
Definition at line 417 of file qtestlogger.cpp.
unsigned int QTestLogger::randomSeed | ( | ) | const |
|
virtual |
void QTestLogger::setLogFormat | ( | TestLoggerFormat | fm | ) |
Definition at line 372 of file qtestlogger.cpp.
int QTestLogger::skipCount | ( | ) | const |
Definition at line 402 of file qtestlogger.cpp.
|
virtual |
Reimplemented from QAbstractTestLogger.
Definition at line 81 of file qtestlogger.cpp.
|
virtual |
Reimplemented from QAbstractTestLogger.
Definition at line 105 of file qtestlogger.cpp.
int QTestLogger::systemCount | ( | ) | const |
Definition at line 407 of file qtestlogger.cpp.
int QTestLogger::warningCount | ( | ) | const |
Definition at line 397 of file qtestlogger.cpp.
|
private |
Definition at line 110 of file qtestlogger_p.h.
Referenced by addBenchmarkResult(), addIncident(), addMessage(), enterTestFunction(), stopLogging(), and ~QTestLogger().
|
private |
Definition at line 119 of file qtestlogger_p.h.
Referenced by addMessage(), errorCount(), and stopLogging().
|
private |
Definition at line 111 of file qtestlogger_p.h.
Referenced by addMessage(), startLogging(), and stopLogging().
|
private |
Definition at line 118 of file qtestlogger_p.h.
Referenced by addIncident(), failureCount(), and stopLogging().
|
private |
Definition at line 114 of file qtestlogger_p.h.
Referenced by enterTestFunction(), startLogging(), and ~QTestLogger().
|
private |
Definition at line 113 of file qtestlogger_p.h.
Referenced by logFormat().
|
private |
Definition at line 128 of file qtestlogger_p.h.
Referenced by hasRandomSeed(), and registerRandomSeed().
|
private |
Definition at line 126 of file qtestlogger_p.h.
Referenced by addMessage(), and infoCount().
|
private |
Definition at line 109 of file qtestlogger_p.h.
Referenced by enterTestFunction(), stopLogging(), and ~QTestLogger().
|
private |
Definition at line 112 of file qtestlogger_p.h.
Referenced by startLogging(), stopLogging(), and ~QTestLogger().
|
private |
Definition at line 117 of file qtestlogger_p.h.
Referenced by addIncident(), and passCount().
|
private |
Definition at line 123 of file qtestlogger_p.h.
Referenced by addMessage(), and qdebugCount().
|
private |
Definition at line 125 of file qtestlogger_p.h.
Referenced by addMessage(), and qfatalCount().
|
private |
Definition at line 124 of file qtestlogger_p.h.
Referenced by addMessage(), and qwarnCount().
|
private |
Definition at line 127 of file qtestlogger_p.h.
Referenced by randomSeed(), and registerRandomSeed().
|
private |
Definition at line 121 of file qtestlogger_p.h.
Referenced by addMessage(), and skipCount().
|
private |
Definition at line 122 of file qtestlogger_p.h.
Referenced by addMessage(), and systemCount().
|
private |
Definition at line 116 of file qtestlogger_p.h.
Referenced by enterTestFunction(), and stopLogging().
|
private |
Definition at line 120 of file qtestlogger_p.h.
Referenced by addMessage(), and warningCount().