27 lines
818 B
C++
27 lines
818 B
C++
/**
|
|
* @file gtest_qt_main.cpp
|
|
* @brief Point d'entree de migration_tests.
|
|
*
|
|
* GTest::gtest_main fournit un main() qui ne cree aucune QApplication. Or les tests
|
|
* de widgets (EventDelegate, TimelineView, ...) en instancient, et Qt abandonne avec
|
|
* "QWidget: Must construct a QApplication before a QWidget". On fournit donc notre
|
|
* propre main() : QApplication d'abord, gtest ensuite.
|
|
*
|
|
* En environnement sans affichage, lancer avec QT_QPA_PLATFORM=offscreen.
|
|
*/
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
#include <NGLLogger/NGLLoggerBootstrap.h>
|
|
#include <QtWidgets/QApplication>
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
QApplication app(argc, argv);
|
|
|
|
NGL::NGLLoggerBootstrap::createNGLRootLogger(QString(), true, QString(), /*quiet=*/true);
|
|
|
|
::testing::InitGoogleTest(&argc, argv);
|
|
return RUN_ALL_TESTS();
|
|
}
|