diff --git a/Source/Engine/Tests/TestMain.cpp b/Source/Engine/Tests/TestMain.cpp index 6dd3c8873..68998e3e0 100644 --- a/Source/Engine/Tests/TestMain.cpp +++ b/Source/Engine/Tests/TestMain.cpp @@ -26,6 +26,13 @@ TestsRunnerService TestsRunnerServiceInstance; void TestsRunnerService::Update() { + // End if failed to perform a startup + if (ScriptsBuilder::LastCompilationFailed()) + { + Engine::RequestExit(-1); + return; + } + // Wait for Editor to be ready for running tests (eg. scripting loaded) if (!ScriptsBuilder::IsReady() || !Scripting::IsEveryAssemblyLoaded() ||