-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
Feature: Add targetPlatform for tests #189
Comments
Thanks for creating this issue. We agree this would be nice to have as well. If I remember correctly, this has been requested before but no pull request was ever created. In test runner currently there's only Accepting PRs for this. |
Context
Since we are targeting multiple platforms with several different defines (such as
#if UNITY_IOS
and#if UNITY_ANDROID
) in our code base I would like to run tests while targeting these platforms. Currently only theUNITY_LINUX_STANDALONE
define is set when running tests on an ubuntu runner.This would make it so much easier to catch those simple compile mistakes when PR's lands too.
Suggested solution
I suggest that
-targetPlatform
is added as an option. This option would then require the unity project to have a staticRunTest
(or something similar) method also defined in a-testMethod
option (similar to how-buildMethod
works for game-ci/unity-builder).That testMethod would then need to look something like this (in an editor folder):
Additional details
https://docs.unity3d.com/Packages/com.unity.test-framework@1.1/manual/extension-run-tests.html
The text was updated successfully, but these errors were encountered: