Files
XCEngine/tests/Rendering/integration/RenderingIntegrationMain.h
ssdfasd 12b71a319f chore: snapshot editor work and restore tests
Key points:\n- restore the tests tree removed by bc47e6e\n- capture current editor workspace, scene, and docs reshuffle changes\n- keep local cloud.nvdb resources ignored from this commit
2026-04-25 22:11:47 +08:00

26 lines
656 B
C++

#pragma once
#include <gtest/gtest.h>
#include <XCEngine/Debug/ConsoleLogSink.h>
#include <XCEngine/Debug/Logger.h>
#include <cstdio>
#include <cstdlib>
#include <memory>
inline int RunRenderingIntegrationTestMain(int argc, char** argv) {
using namespace XCEngine::Debug;
Logger::Get().Initialize();
Logger::Get().AddSink(std::make_unique<ConsoleLogSink>());
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);
}