TreeFrogFramework  2.8
Macros
tftest.h File Reference
#include "tkvsdatabasepool.h"
#include "turlroute.h"
#include <QByteArray>
#include <QEventLoop>
#include <QObject>
#include <QtTest/QtTest>
#include <TAppSettings>
#include <TSystemGlobal>
#include <TStdErrSystemLogger>
#include <TWebApplication>
Include dependency graph for tftest.h:

Go to the source code of this file.

Macros

#define TF_TEST_MAIN(TestObject)   TF_TEST_SQL_MAIN(TestObject, true);
 
#define TF_TEST_SQL_MAIN(TestObject, EnableTransactions)
 
#define TF_TEST_SQLLESS_MAIN(TestObject)
 
#define INIT_MULTIPLEXING_SERVER()
 

Macro Definition Documentation

◆ INIT_MULTIPLEXING_SERVER

#define INIT_MULTIPLEXING_SERVER ( )

◆ TF_TEST_MAIN

#define TF_TEST_MAIN (   TestObject)    TF_TEST_SQL_MAIN(TestObject, true);

◆ TF_TEST_SQL_MAIN

#define TF_TEST_SQL_MAIN (   TestObject,
  EnableTransactions 
)

◆ TF_TEST_SQLLESS_MAIN

#define TF_TEST_SQLLESS_MAIN (   TestObject)
Value:
int main(int argc, char *argv[]) \
{ \
TWebApplication app(argc, argv); \
TestObject tc; \
return QTest::qExec(&tc, argc, argv); \
}
The TStdErrSystemLogger class provides functionality of system logging to stderr.
Definition: tstderrsystemlogger.h:5
T_CORE_EXPORT void setupSystemLogger(TSystemLogger *logger=nullptr)
Definition: tsystemglobal.cpp:57
T_CORE_EXPORT TWebApplication * app() noexcept
Returns a global pointer referring to the unique application object.
Definition: tglobal.cpp:40