-
Couldn't load subscription status.
- Fork 483
test: Consolidate pytest suite to MCPForUnity and improve test infrastructure #332
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
dsarno
merged 15 commits into
CoplayDev:main
from
dsarno:chore/pytest-harness-tests-only
Oct 21, 2025
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
8ae595d
Update github-repo-stats.yml
dsarno 83b16ea
Merge branch 'CoplayDev:main' into main
dsarno f8946c2
pytest: make harness MCPForUnity-only; remove UnityMcpBridge paths fr…
dsarno 15bd3f3
Add missing meta for MaterialMeshInstantiationTests.cs (Assets)
dsarno a729600
bridge/tools/manage_script: fix missing unity_connection prefix in va…
dsarno b0edffd
tests: rename to script_apply_edits_module; extract DummyContext to t…
dsarno 282f4d8
tests: import cleanup and helper extraction; telemetry: prefer plain …
dsarno 2d50bf4
chore: remove unintended .wt-origin-main gitlink and ignore folder
dsarno 386a6cc
tests: nit fixes (unused-arg stubs, import order, path-normalized ign…
dsarno 8cdcda3
Add development dependencies to pyproject.toml
dsarno ddd3159
Revert "Update github-repo-stats.yml"
dsarno a607041
test: improve test clarity and modernize asyncio usage
dsarno 3213d46
refactor: remove duplicate DummyContext definitions across test files
dsarno 51750f0
chore: remove unused _load function from test_edit_strict_and_warning…
dsarno dcd6907
docs: add comment explaining CWD manipulation in telemetry test
dsarno 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
...Projects/UnityMCPTests/Assets/Tests/EditMode/Tools/MaterialMeshInstantiationTests.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,4 @@ | ||
| def pytest_ignore_collect(path, config): | ||
| # Avoid duplicate import mismatches between Bridge and MCPForUnity copies | ||
| p = str(path) | ||
| return p.endswith("test_telemetry.py") |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| [pytest] | ||
| testpaths = tests | ||
| norecursedirs = UnityMcpBridge MCPForUnity | ||
|
|
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The module resolution order change is significant but lacks explanation. Add a comment explaining why plain 'config' is now preferred over package-qualified paths, especially regarding the test-time override behavior mentioned in the comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment added to explain