Commit 32a7722
Fix play mode test scene jumping issue
This commit fixes an issue where play mode tests would jump to the init scene but not run any tests.
Changes:
- Wrap TestRunnerCallbacks.IsRunningTests check with #if UNITY_INCLUDE_TESTS in ChangeScene.cs
This ensures the test runner check is only performed when test framework is available
- Add test assembly reference to JEngine.Core.Editor.asmdef (GUID:0acc523941302664db1f4e527237feb3)
- Update .gitignore to exclude Claude-generated files
The root cause was that ChangeScene.cs was trying to check TestRunnerCallbacks.IsRunningTests
without verifying the test framework was available, which could cause the check to fail or
not work properly during play mode tests.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent a1f7876 commit 32a7722
3 files changed
Lines changed: 13 additions & 1 deletion
File tree
- UnityProject/Packages/com.jasonxudeveloper.jengine.core/Editor
- Misc
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
0 commit comments