Example #1
0
        public void RunDLL(string dllFullName, string coverageXmlFileName)
        {
            string args = String.Join(" ",
                                      "-target:" + this.NUnit3ConsoleExecFullName,
                                      "-targetargs:" + dllFullName,
                                      "-output:" + coverageXmlFileName,
                                      "-register:user"
                                      );

            runner.Run(args);

            while (!runner.ExposeProcess().HasExited)
            {
                Thread.Sleep(300);
            }
        }
Example #2
0
        public void Generate(string coverageXmlPath, string sourceDirectory)
        {
            string args = String.Join(
                " ",
                "-reports:" + coverageXmlPath,
                "-targetdir:.",
                "-sourcedirs:" + sourceDirectory
                );

            runner.Run(args);

            while (!runner.ExposeProcess().HasExited)
            {
                Thread.Sleep(300);
            }
        }
 public static bool Run(ICmdRunner runner)
 {
     while (!_quit)
     {
         ITestCase tc = GetNextReadyCase();
         if (tc != null)
         {
             tc.OnPreCmdRun();
             if (!runner.Run(tc))
             {
                 tc.OnPostCmdRun();
                 return false;
             }
             tc.OnPostCmdRun();
         }
         else
         {
             Thread.Sleep(100);
         }
     }
     return false;
 }