unity-mcp/tests
dsarno faf9affc36
fix: JSON material property handling + tests (manage_asset) #90 (#349)
* feat: add JSON property handling for materials; add tests for JSON coercion and end-to-end; update test project manifest and ProjectVersion

* fix(manage_asset): support structured texture blocks case-insensitively; resolve _BaseMap/_MainTex automatically and apply when missing name

* Update MCPForUnity/Editor/Tools/ManageAsset.cs

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* refactor(manage_asset): remove goto; reuse alias resolver for structured texture (supports 'albedo'); tests: self-sufficient texture asset and _BaseColor/_Color guards; python: assert success in invalid JSON case

* chore(manage_asset): remove duplicate return in modify case

* tests: fix mocks/patching for manage_asset/manage_gameobject; make invalid-json case tolerant; ensure prefab modify test patches transport correctly

* ci: allow manual dispatch for Unity EditMode tests (workflow_dispatch)

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-10-24 11:43:26 -07:00
..
__init__.py Harden MCP tool parameter handling to eliminate “invalid param” errors (#339) 2025-10-22 18:42:46 -07:00
conftest.py test: Consolidate pytest suite to MCPForUnity and improve test infrastructure (#332) 2025-10-21 10:42:55 -07:00
test_edit_normalization_and_noop.py Harden MCP tool parameter handling to eliminate “invalid param” errors (#339) 2025-10-22 18:42:46 -07:00
test_edit_strict_and_warnings.py test: Consolidate pytest suite to MCPForUnity and improve test infrastructure (#332) 2025-10-21 10:42:55 -07:00
test_find_in_file_minimal.py test: Consolidate pytest suite to MCPForUnity and improve test infrastructure (#332) 2025-10-21 10:42:55 -07:00
test_get_sha.py Harden MCP tool parameter handling to eliminate “invalid param” errors (#339) 2025-10-22 18:42:46 -07:00
test_helpers.py test: Consolidate pytest suite to MCPForUnity and improve test infrastructure (#332) 2025-10-21 10:42:55 -07:00
test_improved_anchor_matching.py Harden MCP tool parameter handling to eliminate “invalid param” errors (#339) 2025-10-22 18:42:46 -07:00
test_json_parsing_simple.py fix: JSON material property handling + tests (manage_asset) #90 (#349) 2025-10-24 11:43:26 -07:00
test_logging_stdout.py docs: replace "Unity MCP" with "MCP for Unity" in all text strings (#314) 2025-10-11 04:01:51 -04:00
test_manage_asset_json_parsing.py fix: JSON material property handling + tests (manage_asset) #90 (#349) 2025-10-24 11:43:26 -07:00
test_manage_asset_param_coercion.py Harden MCP tool parameter handling to eliminate “invalid param” errors (#339) 2025-10-22 18:42:46 -07:00
test_manage_gameobject_param_coercion.py Harden MCP tool parameter handling to eliminate “invalid param” errors (#339) 2025-10-22 18:42:46 -07:00
test_manage_script_uri.py Harden MCP tool parameter handling to eliminate “invalid param” errors (#339) 2025-10-22 18:42:46 -07:00
test_read_console_truncate.py Harden MCP tool parameter handling to eliminate “invalid param” errors (#339) 2025-10-22 18:42:46 -07:00
test_read_resource_minimal.py test: Consolidate pytest suite to MCPForUnity and improve test infrastructure (#332) 2025-10-21 10:42:55 -07:00
test_resources_api.py test: Consolidate pytest suite to MCPForUnity and improve test infrastructure (#332) 2025-10-21 10:42:55 -07:00
test_script_editing.py Claude‑friendly edit tools + framed transport + live Unity NL test framework (#243) 2025-08-30 09:55:38 -07:00
test_script_tools.py fix: JSON material property handling + tests (manage_asset) #90 (#349) 2025-10-24 11:43:26 -07:00
test_telemetry_endpoint_validation.py test: Consolidate pytest suite to MCPForUnity and improve test infrastructure (#332) 2025-10-21 10:42:55 -07:00
test_telemetry_queue_worker.py Harden MCP tool parameter handling to eliminate “invalid param” errors (#339) 2025-10-22 18:42:46 -07:00
test_telemetry_subaction.py test: Consolidate pytest suite to MCPForUnity and improve test infrastructure (#332) 2025-10-21 10:42:55 -07:00
test_transport_framing.py docs: replace "Unity MCP" with "MCP for Unity" in all text strings (#314) 2025-10-11 04:01:51 -04:00
test_validate_script_summary.py Harden MCP tool parameter handling to eliminate “invalid param” errors (#339) 2025-10-22 18:42:46 -07:00