Skip to content

Fix running play-mode tests in player#673

Open
haraldreingruber wants to merge 1 commit intossannandeji:masterfrom
haraldreingruber:patch-1
Open

Fix running play-mode tests in player#673
haraldreingruber wants to merge 1 commit intossannandeji:masterfrom
haraldreingruber:patch-1

Conversation

@haraldreingruber
Copy link

I was not able to run play-mode tests using the Zenject.SceneTestFixture in a player (instead of in the Editor) until I removed the restriction to the Editor platform for the Zenject-TestFramework asmdef. It makes kind of sense, as it will be running on other platforms, not in the Editor.

I guess the reason for having it there is to prevent Unity from including the test framework in the actual builds. I think this can be achieved as well by adding the "UNITY_INCLUDE_TESTS" constraint. Could you double-check if that works for you?

I was not able to run play-mode tests using the Zenject.SceneTestFixture in a player (instead of in the Editor) until I removed the restriction to the Editor platform for the Zenject-TestFramework asmdef. It makes kind of sense, as it will be running on other platforms, not in the Editor.

I guess the reason for having it there is to prevent Unity from including the test framework in the actual builds. I think this can be acheived as well with adding the "UNITY_INCLUDE_TESTS" constraint. Could you double-check if that works for you?
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