コード例 #1
0
    static public void AllNoQuit()
    {
        Runnable.EnableRunnableInEditor();

        IBM.Watson.DeveloperCloud.Editor.UnitTestManager instance = IBM.Watson.DeveloperCloud.Editor.UnitTestManager.Instance;
        instance.OnTestCompleteCallback = OnTestsComplete;
        instance.QueueTests(Utility.FindAllDerivedTypes(typeof(UnitTest)), true);
    }
コード例 #2
0
    static public void AllNoQuit()
    {
        Runnable.EnableRunnableInEditor();

        IBM.Watson.DeveloperCloud.Editor.UnitTestManager.ProjectToTest = Config.Instance.GetVariableValue("PACKAGE_PREFIX");
        IBM.Watson.DeveloperCloud.Editor.UnitTestManager instance = IBM.Watson.DeveloperCloud.Editor.UnitTestManager.Instance;
        instance.OnTestCompleteCallback = OnTestsComplete;
        instance.QueueTests(Utility.FindAllDerivedTypes(typeof(UnitTest)), true);
    }
コード例 #3
0
    /// <summary>
    /// Public functions invoked from the command line to run all UnitTest objects.
    /// </summary>
    static public void All()
    {
        LogSystem.InstallDefaultReactors();
#if UNITY_EDITOR
        Runnable.EnableRunnableInEditor();
#endif

        IBM.Watson.DeveloperCloud.Editor.UnitTestManager instance = IBM.Watson.DeveloperCloud.Editor.UnitTestManager.Instance;
        instance.QuitOnTestsComplete    = true;
        instance.OnTestCompleteCallback = OnTestsComplete;
        instance.QueueTests(Utility.FindAllDerivedTypes(typeof(UnitTest)), true);
    }
コード例 #4
0
        public static void RunTests()
        {
            Log.Debug("TravisIntegrationTests.RunTests()", "***** Running Integration tests!");

#if UNITY_EDITOR
            Runnable.EnableRunnableInEditor();
#endif
            string ProjectToTest = "";
#if !NETFX_CORE
            string[] args = Environment.GetCommandLineArgs();
            for (int i = 0; i < args.Length; ++i)
            {
                if (args[i] == "-packageOptions" && (i + 1) < args.Length)
                {
                    string[] options = args[i + 1].Split(',');
                    foreach (string option in options)
                    {
                        if (string.IsNullOrEmpty(option))
                        {
                            continue;
                        }

                        string[] kv = option.Split('=');
                        if (kv[0] == "ProjectName")
                        {
                            ProjectToTest = kv.Length > 1 ? kv[1] : "";
                            Log.Status("RunUnitTest", "AutoLunchOptions ProjectToTest:{0}", ProjectToTest);
                            break;
                        }
                    }
                }
            }
#endif

            UnitTestManager.ProjectToTest = ProjectToTest;
            UnitTestManager instance = UnitTestManager.Instance;
            instance.QuitOnTestsComplete    = true;
            instance.OnTestCompleteCallback = OnTravisIntegrationTestsComplete;
            instance.QueueTests(Utility.FindAllDerivedTypes(typeof(UnitTest)), true);
        }