diff --git a/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/PlatformRunner/PlatformRunner.cs b/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/PlatformRunner/PlatformRunner.cs index 2f649b08..3df90de3 100644 --- a/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/PlatformRunner/PlatformRunner.cs +++ b/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/PlatformRunner/PlatformRunner.cs @@ -109,8 +109,10 @@ namespace UnityTest.IntegrationTests { case BuildTargetGroup.Android: return BuildTarget.Android; + #if !UNITY_5_4_OR_NEWER case BuildTargetGroup.WebPlayer: return BuildTarget.WebPlayer; + #endif default: { switch (Application.platform) @@ -122,7 +124,11 @@ namespace UnityTest.IntegrationTests case RuntimePlatform.LinuxPlayer: return BuildTarget.StandaloneLinux; } + #if UNITY_5_4_OR_NEWER + return BuildTarget.WebGL; + #else return BuildTarget.WebPlayer; + #endif } } }