49 #include "QtTest/qtestcase.h" 50 #include "QtTest/private/qtestresult_p.h" 51 #include "QtTest/private/qbenchmark_p.h" 58 :listOfTestcases(0), currentLogElement(0), errorLogElement(0),
60 testCounter(0), passCounter(0),
61 failureCounter(0), errorCounter(0),
62 warningCounter(0), skipCounter(0),
63 systemCounter(0), qdebugCounter(0),
64 qwarnCounter(0), qfatalCounter(0),
65 infoCounter(0), randomSeed_(0),
185 const char *file,
int line)
187 const char *typeBuf = 0;
235 const char* oldResult = resultAttr->
value();
236 bool overwrite =
false;
237 if (!strcmp(oldResult,
"pass")) {
240 else if (!strcmp(oldResult,
"xfail")) {
243 else if (!strcmp(oldResult,
"xpass")) {
292 const char *filler = (tag && gtag) ?
":" :
"";
293 if ((!tag || !tag[0]) && (!gtag || !gtag[0])) {
312 const char *typeBuf = 0;
QTest::QBenchmarkMetric metric
unsigned int randomSeed() const
bool hasRandomSeed() const
#define QT_END_NAMESPACE
This macro expands to.
char * data()
Returns a pointer to the data stored in the byte array.
#define it(className, varName)
bool setPair(QTest::AttributeIndex attributeIndex, const char *value)
void addTag(QTestElement *element)
const char * value() const
TestLoggerFormat logFormat()
int qt_asprintf(QTestCharBuffer *str, const char *format,...)
QTestFileLogger * filelogger
bool addLogElement(QTestElement *element)
virtual void output(QTestElement *element) const
void addAttribute(const QTest::AttributeIndex index, const char *value)
Q_CORE_EXPORT const char * qVersion()
void setLogger(const QTestLogger *tstLogger)
#define QT_BEGIN_NAMESPACE
This macro expands to.
static const char * currentTestObjectName()
void addIncident(IncidentTypes type, const char *description, const char *file=0, int line=0)
const char * constData() const
void setLogFormat(TestLoggerFormat fm)
void addBenchmarkResult(const QBenchmarkResult &result)
void flush(const char *msg)
QTestBasicStreamer * logFormatter
#define QTEST_VERSION_STR
const char * constData() const
Returns a pointer to the data stored in the byte array.
int Q_TESTLIB_EXPORT qt_snprintf(char *str, int size, const char *format,...)
QTestElement * errorLogElement
static const char * currentGlobalDataTag()
void enterTestFunction(const char *function)
const char * benchmarkMetricName(QBenchmarkMetric metric)
const QTestElementAttribute * attribute(QTest::AttributeIndex index) const
void addMessage(MessageTypes type, const char *message, const char *file=0, int line=0)
QByteArray toAscii() const Q_REQUIRED_RESULT
Returns an 8-bit representation of the string as a QByteArray.
static const char * currentDataTag()
static const QCssKnownValue properties[NumProperties - 1]
static QBenchmarkTestMethodData * current
void setParent(const QTestElement *p)
QBenchmarkContext context
static QByteArray number(int, int base=10)
Returns a byte array containing the string equivalent of the number n to base base (10 by default)...
void registerRandomSeed(unsigned int seed)
QTestElement * currentLogElement
QTestElement * listOfTestcases