#pragma once #include #include #include #include #include #include inline int RunRenderingIntegrationTestMain(int argc, char** argv) { using namespace XCEngine::Debug; Logger::Get().Initialize(); Logger::Get().AddSink(std::make_unique()); Logger::Get().SetMinimumLevel(LogLevel::Debug); testing::InitGoogleTest(&argc, argv); const int result = RUN_ALL_TESTS(); Logger::Get().Shutdown(); std::fflush(nullptr); std::_Exit((result == 0 && !testing::UnitTest::GetInstance()->Failed()) ? 0 : 1); }