Skip to content

Commit a86a8d8

Browse files
committed
feat: add OneTimeSetUp to initialize CommandRegistry before tests run
Hopefully fix the CI failures
1 parent 8edbf4e commit a86a8d8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

TestProjects/UnityMCPTests/Assets/Tests/EditMode/Tools/CommandRegistryTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ namespace MCPForUnityTests.Editor.Tools
1010
{
1111
public class CommandRegistryTests
1212
{
13+
[OneTimeSetUp]
14+
public void OneTimeSetUp()
15+
{
16+
// Ensure CommandRegistry is initialized before tests run
17+
CommandRegistry.Initialize();
18+
}
19+
1320
[Test]
1421
public void GetHandler_ThrowsException_ForUnknownCommand()
1522
{

0 commit comments

Comments
 (0)