Ejemplo n.º 1
0
        Process LaunchTestRunner(PNUnitTestInfo testInfo, string testInfoPath)
        {
            string testingArgs = string.Format(
                "\"{0}\" \"{1}\"", testInfoPath, mPathToAssemblies);

            // You should customize this section depending on the applications
            // you've got and the platform they run on.
            Process result = null;

            if (testInfo.TestName.StartsWith("windows:"))
            {
                result = ProcessCreator.CreateGuiApplicationRunnerProcess(
                    testInfo, "windows.exe", testingArgs, mPathToAssemblies);
            }

            if (testInfo.TestName.StartsWith("linux:"))
            {
                result = ProcessCreator.CreateGuiApplicationRunnerProcess(
                    testInfo, "linux", testingArgs, mPathToAssemblies);
            }

            if (testInfo.TestName.StartsWith("mac:"))
            {
                result = ProcessCreator.CreateGuiApplicationRunnerProcess(
                    testInfo, "macos.app/Contents/MacOS/macos", testingArgs, mPathToAssemblies);
            }

            if (result == null)
            {
                result = ProcessCreator.CreateTestRunnerProc(testingArgs, mPathToAssemblies);
            }

            result.Start();
            return(result);
        }
Ejemplo n.º 2
0
        Process PreloadTestRunner()
        {
            Process preload = ProcessCreator.CreateTestRunnerProc(
                string.Format("preload \"{0}\"", mPathToAssemblies),
                mPathToAssemblies);

            preload.Start();

            return(preload);
        }