Skip to content

chore: update .gitignore and scaffold TestHost for EditMode tests#2

Closed
Zurcusa wants to merge 3 commits into
mainfrom
pr/2-test-host
Closed

chore: update .gitignore and scaffold TestHost for EditMode tests#2
Zurcusa wants to merge 3 commits into
mainfrom
pr/2-test-host

Conversation

@Zurcusa
Copy link
Copy Markdown
Owner

@Zurcusa Zurcusa commented May 4, 2026

⚠️ NOTE: This is PR 1 of 4 in the MWA v2 stack. Contains .gitignore updates and test infrastructure — no runtime code changes.

Status Type ⚠️ Core Change Issue
Ready Tooling No

Problem

The .gitignore is missing Unity-generated file patterns. The SDK also has no way to run EditMode tests outside a manually configured Unity project.

Solution

  • Update .gitignore with Unity-generated files, IDE exclusions, and sub-project patterns
  • Add a minimal Unity project under Tests~/TestHost/ that imports the SDK via UPM and runs EditMode tests headlessly
  • Includes bootstrap and UPM-clean-import sentinel tests

Deploy Notes

New directory: Tests~/TestHost/ — not included in the UPM package, used only for development and CI.

Run tests with:
```bash
unity-editor -runTests -batchmode -projectPath Tests~/TestHost -testPlatform EditMode
```

@Zurcusa Zurcusa force-pushed the pr/1-build-foundation branch from 5f007fd to 8359d28 Compare May 4, 2026 11:40
Zurcusa and others added 3 commits May 4, 2026 14:51
Enable C# 9 features (init-only setters, nullable reference types) via
Directory.Build.props and add the IsExternalInit polyfill required for
init-setter support on .NET Standard 2.0. Update .gitignore for Unity
generated files and IDE exclusions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…tests

Add a minimal Unity project skeleton under Tests~/TestHost/ that imports
the SDK via UPM local path and runs EditMode tests without requiring an
Android device. Includes bootstrap and UPM-clean-import sentinel tests.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Zurcusa Zurcusa changed the base branch from pr/1-build-foundation to main May 4, 2026 11:51
@Zurcusa Zurcusa changed the title test(test-host): scaffold TestHost Unity project for EditMode tests chore: update .gitignore and scaffold TestHost for EditMode tests May 4, 2026
@Zurcusa
Copy link
Copy Markdown
Owner Author

Zurcusa commented May 4, 2026

Merged .gitignore into PR #3; TestHost scaffold eliminated in favor of existing Tests/EditMode/ structure.

@Zurcusa Zurcusa closed this May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant