Skip to content
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

Fix running play-mode tests in player #673

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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