private static void SetTestsNamespacesFromCommandLineArgument()
    {
        string namespaceString = ConsoleArgumentHelper.GetArg("-testNamespaces");

        int timeScale = 0;

        if (!string.IsNullOrEmpty(namespaceString))
        {
            namespaceString = namespaceString.Replace(" ", String.Empty);
            string[] strings = namespaceString.Split(';');

            if (strings.Length > 0)
            {
                PlayModeTestRunner.Namespaces = strings.Where(s => !string.IsNullOrEmpty(s)).ToArray();
                if (PlayModeTestRunner.Namespaces.Length > 0)
                {
                    Debug.LogFormat("TestTools: namespace string {0}  Test Namespaces count: {1}",
                                    namespaceString,
                                    PlayModeTestRunner.Namespaces.Length);

                    foreach (var name in PlayModeTestRunner.Namespaces)
                    {
                        Debug.Log("namespace: " + name);
                    }
                    return;
                }
            }
        }

        Debug.Log("TestTools: No Test Namespaces:");
        PlayModeTestRunner.Namespaces = null;
    }
    private static void TestBuild()
    {
        SetTimeScaleFromCommandLineArgument();
        PrepareBuild();

        string[] list = EditorBuildSettings.scenes.Where(x => x.enabled).Select(x => x.path).ToArray();
        BuildPipeline.BuildPlayer(list,
                                  ConsoleArgumentHelper.GetArg("-testBuildPath"), BuildTarget.Android,
                                  BuildOptions.None);
    }
    private static void SetTimeScaleFromCommandLineArgument()
    {
        string timeScaleString = ConsoleArgumentHelper.GetArg("-timeScale");

        int timeScale = 0;

        if (timeScaleString != null)
        {
            int.TryParse(timeScaleString, out timeScale);
        }
        if (timeScale <= 0)
        {
            timeScale = 1;
        }
        PlayModeTestRunner.DefaultTimescale = timeScale;
    }