ACF $AcfVersion:0$
Macros
TestMain.h File Reference
#include <itest/CStandardTestExecutor.h>
#include <QtCore/QCoreApplication>

Go to the source code of this file.

Macros

#define I_TEST_MAIN()
 Macro to define the standard main function for ACF test executables.
 

Macro Definition Documentation

◆ I_TEST_MAIN

#define I_TEST_MAIN ( )
Value:
int main(int argc, char *argv[]) \
{ \
QCoreApplication app(argc, argv); \
return instance.RunTests(argc, argv); \
}
Standard implementation of ITestExecutor with static test registration.
virtual int RunTests(int argc, char *argv[]) override

Macro to define the standard main function for ACF test executables.

This eliminates code duplication across test main.cpp files.

Usage: #include <itest/TestMain.h> I_TEST_MAIN()

Definition at line 19 of file TestMain.h.