public async Task <ResultSummary> ProcessResults(TestRunResult results) { var summary = new ResultSummary(results); var _resultProcessor = TestResultProcessor.BuildChainOfResponsability(Options); await _resultProcessor.Process(summary).ConfigureAwait(false); return(summary); }
public Task <bool> OpenChannel(string message = null) { if (_resultProcessor?.Results.Count > 0) { _resultProcessor = new TestResultProcessor(); } return(Task.FromResult(true)); }
async Task ExecuteTestsAync() { Running = true; Results = null; var runner = await LoadTestAssembliesAsync().ConfigureAwait(false); ITestResult result = await Task.Run(() => runner.Run(TestListener.NULL, TestFilter.Empty)).ConfigureAwait(false); _resultProcessor = TestResultProcessor.BuildChainOfResponsability(Options); await _resultProcessor.Process(result).ConfigureAwait(false); Device.BeginInvokeOnMainThread( () => { Results = new ResultSummary(result); Running = false; }); }
async Task ExecuteTestsAync() { Running = true; Results = null; TestRunResult results = await _testPackage.ExecuteTests(); ResultSummary summary = new ResultSummary(results); _resultProcessor = TestResultProcessor.BuildChainOfResponsability(Options); await _resultProcessor.Process(summary).ConfigureAwait(false); Device.BeginInvokeOnMainThread( () => { Results = summary; Running = false; if (Options.TerminateAfterExecution) { TerminateWithSuccess(); } }); }