-
-
Notifications
You must be signed in to change notification settings - Fork 4
Update assembly definitions and project settings for improved test compilation and dependency management #11
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,6 +1,6 @@ | ||||||||||||||
| { | ||||||||||||||
| "name": "Extensions.Unity.PlayerPrefsEx.Editor.Tests", | ||||||||||||||
| "rootNamespace": "Extensions.Unity.PlayerPrefsEx.Tests", | ||||||||||||||
| "rootNamespace": "", | ||||||||||||||
| "references": [ | ||||||||||||||
| "UnityEditor.TestRunner", | ||||||||||||||
| "UnityEngine.TestRunner", | ||||||||||||||
|
|
@@ -11,11 +11,9 @@ | |||||||||||||
| ], | ||||||||||||||
| "excludePlatforms": [], | ||||||||||||||
| "allowUnsafeCode": false, | ||||||||||||||
| "overrideReferences": true, | ||||||||||||||
| "precompiledReferences": [ | ||||||||||||||
| "nunit.framework.dll" | ||||||||||||||
| ], | ||||||||||||||
| "autoReferenced": false, | ||||||||||||||
| "overrideReferences": false, | ||||||||||||||
| "precompiledReferences": [], | ||||||||||||||
|
Comment on lines
+14
to
+15
|
||||||||||||||
| "overrideReferences": false, | |
| "precompiledReferences": [], | |
| "overrideReferences": true, | |
| "precompiledReferences": [ | |
| "nunit.framework.dll" | |
| ], |
Copilot
AI
Jan 7, 2026
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 Runtime tests assembly has defineConstraints set to ["UNITY_INCLUDE_TESTS"] but the Editor tests assembly doesn't have this constraint. For consistency, both test assemblies should use the same define constraints. The UNITY_INCLUDE_TESTS define is a standard Unity symbol for test-only code and should be applied consistently across both editor and runtime test assemblies.
| "defineConstraints": [], | |
| "defineConstraints": [ | |
| "UNITY_INCLUDE_TESTS" | |
| ], |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,6 +1,6 @@ | ||||||
| { | ||||||
| "name": "Extensions.Unity.PlayerPrefsEx.Tests", | ||||||
| "rootNamespace": "Extensions.Unity.PlayerPrefsEx.Tests", | ||||||
| "rootNamespace": "", | ||||||
|
||||||
| "rootNamespace": "", | |
| "rootNamespace": "Extensions.Unity.PlayerPrefsEx.Tests", |
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 rootNamespace has been cleared to an empty string, but the actual test files in this directory use the namespace
Extensions.Unity.PlayerPrefsEx.Editor.Tests. This mismatch means the rootNamespace setting won't provide the intended namespace enforcement. Consider setting rootNamespace to "Extensions.Unity.PlayerPrefsEx.Editor.Tests" to match the actual test files.