feat(tests): rework tests in numerous ways (#3059)

This commit is contained in:
ns6089
2024-08-22 23:48:24 +03:00
committed by GitHub
parent 3088823ffc
commit 764ce03520
19 changed files with 316 additions and 446 deletions

15
tests/tests_main.cpp Normal file
View File

@@ -0,0 +1,15 @@
/**
* @file tests/tests_main.cpp
* @brief Entry point definition.
*/
#include "tests_common.h"
#include "tests_environment.h"
#include "tests_events.h"
int
main(int argc, char **argv) {
testing::InitGoogleTest(&argc, argv);
testing::AddGlobalTestEnvironment(new SunshineEnvironment);
testing::UnitTest::GetInstance()->listeners().Append(new SunshineEventListener);
return RUN_ALL_TESTS();
}