Run native tests on Windows CI
This commit is contained in:
@@ -1,48 +0,0 @@
|
||||
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
|
||||
|
||||
using FlaxEditor.States;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace FlaxEditor.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestEditorStates
|
||||
{
|
||||
/*[Test]
|
||||
public void TestScriptsCompiledBeforeInit()
|
||||
{
|
||||
Editor editor = new Editor();
|
||||
try
|
||||
{
|
||||
Scripting.ScriptsBuilder.CompilationsCount = 2;
|
||||
editor.Init();
|
||||
|
||||
// Mock scripts compilation finish
|
||||
|
||||
}
|
||||
finally
|
||||
{
|
||||
editor.Exit();
|
||||
}
|
||||
}*/
|
||||
/*
|
||||
[Test]
|
||||
[Ignore("TODO: finish building api for unit tests")]
|
||||
public void TestStatesChain()
|
||||
{
|
||||
Editor editor = new Editor();
|
||||
|
||||
editor.Init(true, true);
|
||||
editor.EnsureState<LoadingState>();
|
||||
|
||||
// Mock scripts compilation finish
|
||||
editor.Update();
|
||||
ScriptsBuilder.Internal_OnEvent(ScriptsBuilder.EventType.CompileEndGood);
|
||||
editor.Update();
|
||||
|
||||
editor.EnsureState<EditingSceneState>();
|
||||
editor.Exit();
|
||||
editor.EnsureState<ClosingState>();
|
||||
}*/
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
|
||||
|
||||
#if FLAX_TESTS
|
||||
namespace FlaxEngine
|
||||
{
|
||||
partial struct TestStruct : System.IEquatable<TestStruct>
|
||||
@@ -128,4 +127,3 @@ namespace FlaxEngine
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user