mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
Add Catch2 and Google Test on Cmake
ToDo: - Add compiling QElectroTech on Cmake (help needed) - more Tests? - Qt Test - Boost Test to test run qtcreator File > open => CMakeLists.txt
This commit is contained in:
15
tests/googletest/main.cpp
Normal file
15
tests/googletest/main.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <QtGui/QGuiApplication>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
QGuiApplication app(argc, argv);
|
||||
|
||||
// disable the whole debug output (we want only the output from gtest)
|
||||
// Debug::instance()->setDebugLevelLogFile(Debug::DebugLevel_t::Nothing);
|
||||
// Debug::instance()->setDebugLevelStderr(Debug::DebugLevel_t::Nothing);
|
||||
|
||||
// init gtest and run all tests
|
||||
::testing::InitGoogleTest(&argc, argv);
|
||||
return RUN_ALL_TESTS();
|
||||
}
|
||||
Reference in New Issue
Block a user