private void RunTests(ITestFilter filter) { var startTime = DateTime.UtcNow; ITestResult result = _runner.Run(this, filter); new ResultReporter(result, _outWriter).ReportResults(); if (_options.ResultOutputSpecifications.Count > 0) { var outputManager = new OutputManager(_workDirectory); foreach (var spec in _options.ResultOutputSpecifications) { outputManager.WriteResultFile(result, spec); } } }
private int RunTests(ITestFilter filter) { var startTime = DateTime.UtcNow; ITestResult result = _runner.Run(this, filter); var reporter = new ResultReporter(result, _outWriter, _options.StopOnError); reporter.ReportResults(); if (_options.ResultOutputSpecifications.Count > 0) { var outputManager = new OutputManager(_workDirectory); foreach (var spec in _options.ResultOutputSpecifications) { outputManager.WriteResultFile(result, spec); } } var summary = reporter.Summary; return(summary.FailureCount + summary.ErrorCount + summary.InvalidCount); }
private int RunTests(ITestFilter filter) { var startTime = DateTime.UtcNow; ITestResult result = _runner.Run(this, filter); #if SILVERLIGHT // Silverlight can't display results while the test is running // so we do it afterwards. foreach(ITestResult testResult in _results) _textUI.TestFinished(testResult); #endif ReportResults(result); #if !SILVERLIGHT if (_options.ResultOutputSpecifications.Count > 0) { var outputManager = new OutputManager(_options.WorkDirectory); foreach (var spec in _options.ResultOutputSpecifications) outputManager.WriteResultFile(result, spec); } #endif return Summary.FailureCount + Summary.ErrorCount + Summary.InvalidCount; }
private void RunTests(ITestFilter filter) { var startTime = DateTime.UtcNow; ITestResult result = _runner.Run(this, filter); new ResultReporter(result, _outWriter).ReportResults(); if (_options.ResultOutputSpecifications.Count > 0) { var outputManager = new OutputManager(_workDirectory); foreach (var spec in _options.ResultOutputSpecifications) outputManager.WriteResultFile(result, spec); } }