generated from IvanMurzak/Unity-Package-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 56
Fix TestRunner duplicate executions, schema validation, and reduce token usage #295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
3417685
Fix TestRunner duplicate executions and output schema validation
ebbe-brandstrup 68baf24
Improve TestRunner tool: fix timeout, reduce token usage, fix log ser…
ebbe-brandstrup c29064b
I think we should always run the TestRunner_Run validation logic, eve…
ebbe-brandstrup 64d02c5
Back to the original way of deferring the TestRunnerApi (don't think …
ebbe-brandstrup 9b88eb8
Trigger CI
ebbe-brandstrup 0fea4d7
Merge branch 'IvanMurzak:main' into feature/reduce-test-runner-token-…
ebbe-brandstrup d23bf35
Merge pull request #294 from ebbe-brandstrup/feature/reduce-test-runn…
ebbe-brandstrup a290d95
Usin an enum for the status on TestResultData objects (instead of a l…
ebbe-brandstrup c1847d7
Merge branch 'main' into feature/reduce-test-runner-token-output
ebbe-brandstrup dd69a26
Merge branch 'main' into feature/reduce-test-runner-token-output
IvanMurzak d56bdcd
Refactor TestRunner API to use ResponseCallValueTool for consistency …
IvanMurzak 600d339
Fix null reference issues in RunToolStructuredContentTests by ensurin…
IvanMurzak 764f6f9
Update RunToolStructuredContentTests to access StructuredContent usin…
IvanMurzak 3115855
Change log message to warning for already registered callbacks in Tes…
IvanMurzak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
Unity-MCP-Plugin/Assets/root/Editor/Scripts/API/Tool/TestRunner/TestResultStatus.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| /* | ||
| ┌──────────────────────────────────────────────────────────────────┐ | ||
| │ Author: Ivan Murzak (https://github.com/IvanMurzak) │ | ||
| │ Repository: GitHub (https://github.com/IvanMurzak/Unity-MCP) │ | ||
| │ Copyright (c) 2025 Ivan Murzak │ | ||
| │ Licensed under the Apache License, Version 2.0. │ | ||
| │ See the LICENSE file in the project root for more information. │ | ||
| └──────────────────────────────────────────────────────────────────┘ | ||
| */ | ||
| #pragma warning disable CS8632 // The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. | ||
|
|
||
| namespace com.IvanMurzak.Unity.MCP.Editor.API.TestRunner | ||
| { | ||
| public enum TestResultStatus | ||
| { | ||
| Passed, | ||
| Failed, | ||
| Skipped | ||
| } | ||
| } |
11 changes: 11 additions & 0 deletions
11
Unity-MCP-Plugin/Assets/root/Editor/Scripts/API/Tool/TestRunner/TestResultStatus.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
Unity-MCP-Plugin/Assets/root/Editor/Scripts/API/Tool/TestRunner/TestRunResponse.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| /* | ||
| ┌──────────────────────────────────────────────────────────────────┐ | ||
| │ Author: Ivan Murzak (https://github.com/IvanMurzak) │ | ||
| │ Repository: GitHub (https://github.com/IvanMurzak/Unity-MCP) │ | ||
| │ Copyright (c) 2025 Ivan Murzak │ | ||
| │ Licensed under the Apache License, Version 2.0. │ | ||
| │ See the LICENSE file in the project root for more information. │ | ||
| └──────────────────────────────────────────────────────────────────┘ | ||
| */ | ||
|
|
||
| #nullable enable | ||
| using System.Collections.Generic; | ||
|
|
||
| namespace com.IvanMurzak.Unity.MCP.Editor.API.TestRunner | ||
| { | ||
| public class TestRunResponse | ||
| { | ||
| public TestSummaryData Summary { get; set; } = new TestSummaryData(); | ||
| public List<TestResultData> Results { get; set; } = new List<TestResultData>(); | ||
| public List<TestLogEntry>? Logs { get; set; } | ||
| } | ||
| } |
2 changes: 2 additions & 0 deletions
2
Unity-MCP-Plugin/Assets/root/Editor/Scripts/API/Tool/TestRunner/TestRunResponse.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file modified
BIN
+512 Bytes
(100%)
...P-Plugin/Assets/root/Plugins/com.IvanMurzak.McpPlugin/netstandard2.1/McpPlugin.Common.dll
Binary file not shown.
Binary file modified
BIN
+1 KB
(100%)
Unity-MCP-Plugin/Assets/root/Plugins/com.IvanMurzak.McpPlugin/netstandard2.1/McpPlugin.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Unity-MCP-Plugin/Assets/root/Plugins/com.IvanMurzak.ReflectorNet/ReflectorNet.dll
Binary file not shown.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.