From 3888eb0045bcf9f91380c8857f11cbe96085301b Mon Sep 17 00:00:00 2001 From: "DESKTOP-D8AN5KL\\Erick" Date: Fri, 1 Dec 2017 16:32:31 -0800 Subject: [PATCH] Updated Batch for newer versions of Unity3D web player --- .../TestRunner/Editor/Batch.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/Batch.cs b/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/Batch.cs index 4744f60d..1a7530a4 100644 --- a/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/Batch.cs +++ b/Assets/UnityTestTools/IntegrationTestsFramework/TestRunner/Editor/Batch.cs @@ -27,7 +27,7 @@ namespace UnityTest public static void RunIntegrationTests() { var targetPlatform = GetTargetPlatform(); - var otherBuildScenes = GetSceneListFromParam (k_OtherBuildScenesParam); + var otherBuildScenes = GetSceneListFromParam(k_OtherBuildScenesParam); var testScenes = GetSceneListFromParam(k_TestScenesParam); if (testScenes.Count == 0) @@ -35,8 +35,8 @@ namespace UnityTest RunIntegrationTests(targetPlatform, testScenes, otherBuildScenes); } - - public static void RunIntegrationTests(BuildTarget ? targetPlatform) + + public static void RunIntegrationTests(BuildTarget? targetPlatform) { var sceneList = FindTestScenesInProject(); RunIntegrationTests(targetPlatform, sceneList, new List()); @@ -48,9 +48,9 @@ namespace UnityTest if (targetPlatform.HasValue) BuildAndRun(targetPlatform.Value, testScenes, otherBuildScenes); else - RunInEditor(testScenes, otherBuildScenes); + RunInEditor(testScenes, otherBuildScenes); } - + private static void BuildAndRun(BuildTarget target, List testScenes, List otherBuildScenes) { var resultFilePath = GetParameterArgument(k_ResultFileDirParam); @@ -70,7 +70,7 @@ namespace UnityTest port = port }; - if (Application.isWebPlayer) + if (Application.platform == RuntimePlatform.WebGLPlayer) { config.sendResultsOverNetwork = false; Debug.Log("You can't use WebPlayer as active platform for running integration tests. Switching to Standalone");