Esempio n. 1
0
        private RunnerResult ExecuteInProc(NUnitTestData test)
        {
            try {
                NUnitTestRunner runner = new NUnitTestRunner(test);

                if (runner.NeedsRunning())
                {
                    Log(Level.Info, "Running '{0}'.", test.Class);
                    runner.Run(string.Empty, Verbose);
                }
                else
                {
                    Log(Level.Info, "Skipping '{0}' because tests haven't changed.", test.Class);
                }
                return(runner.ResultCode);
            } catch (Exception ex) {
                throw new BuildException("Error running unit test.", Location, ex);
            }
        }
Esempio n. 2
0
        private RunnerResult ExecuteInProc(NUnitTestData test)
        {
            try {
                NUnitTestRunner runner = new NUnitTestRunner(test);

                if (runner.NeedsRunning()) {
                    Log(Level.Info, "Running '{0}'.", test.Class);
                    runner.Run(string.Empty, Verbose);
                } else {
                    Log(Level.Info, "Skipping '{0}' because tests haven't changed.", test.Class);
                }
                return runner.ResultCode;
            } catch (Exception ex) {
                throw new BuildException("Error running unit test.", Location, ex);
            }
        }
Esempio n. 3
0
 public RemoteNUnitTestRunner(NUnitTestData testData)
 {
     _runner = new NUnitTestRunner(testData);
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RemoteNUnitTestRunner"/> class.
 /// </summary>
 /// <param name="testData">The test data.</param>
 public RemoteNUnitTestRunner(NUnitTestData testData)
 {
     _runner = new NUnitTestRunner(testData);
 }