chore(unity): 固定Unity CLI Loop本地包并移除UnitySkills依赖
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace io.github.hatayama.uLoopMCP
|
||||
{
|
||||
// Mirrors Unity Test Runner mode names without making the command schema depend on Test Framework types.
|
||||
public enum RunTestMode
|
||||
{
|
||||
EditMode = 1,
|
||||
PlayMode = 2
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Supported test filter types
|
||||
/// </summary>
|
||||
public enum TestFilterType
|
||||
{
|
||||
all = 0,
|
||||
exact = 1,
|
||||
regex = 2,
|
||||
assembly = 3
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Schema for RunTests command parameters
|
||||
/// Provides type-safe parameter access with default values
|
||||
/// </summary>
|
||||
public class RunTestsSchema : BaseToolSchema
|
||||
{
|
||||
/// <summary>
|
||||
/// Test mode - EditMode(1), PlayMode(2)
|
||||
/// </summary>
|
||||
[Description("Test mode - EditMode(1), PlayMode(2)")]
|
||||
public RunTestMode TestMode { get; set; } = RunTestMode.EditMode;
|
||||
|
||||
/// <summary>
|
||||
/// Type of test filter - all(0), exact(1), regex(2), assembly(3)
|
||||
/// </summary>
|
||||
[Description("Type of test filter - all(0), exact(1), regex(2), assembly(3)")]
|
||||
public TestFilterType FilterType { get; set; } = TestFilterType.all;
|
||||
|
||||
/// <summary>
|
||||
/// Filter value (specify when filterType is not all)
|
||||
/// • exact: Individual test method name (e.g.: io.github.hatayama.uLoopMCP.ConsoleLogRetrieverTests.GetAllLogs_WithMaskAllOff_StillReturnsAllLogs)
|
||||
/// • regex: Class name or namespace (e.g.: io.github.hatayama.uLoopMCP.ConsoleLogRetrieverTests, io.github.hatayama.uLoopMCP)
|
||||
/// • assembly: Assembly name (e.g.: uLoopMCP.Tests.Editor)
|
||||
/// </summary>
|
||||
[Description("Filter value (specify when filterType is not all)\n• exact: Individual test method name (e.g.: io.github.hatayama.uLoopMCP.ConsoleLogRetrieverTests.GetAllLogs_WithMaskAllOff_StillReturnsAllLogs)\n• regex: Class name or namespace (e.g.: io.github.hatayama.uLoopMCP.ConsoleLogRetrieverTests, io.github.hatayama.uLoopMCP)\n• assembly: Assembly name (e.g.: uLoopMCP.Tests.Editor)")]
|
||||
public string FilterValue { get; set; } = "";
|
||||
|
||||
[Description("Save unsaved loaded Scene changes and current Prefab Stage changes before running tests")]
|
||||
public bool SaveBeforeRun { get; set; } = false;
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user