Added test case and setting Test configuration

This commit is contained in:
berrux-dev committed 2026-09-11 13:41:20 +02:00
1 parent f815271486
commit a86f9b5bac
48 files changed
+423 -168

No files matched your search

@@ -0,0 +1,26 @@
/**
* @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();
}