Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public Task <bool> OpenChannel(string message = null)
        {
            if (_resultProcessor?.Results.Count > 0)
            {
                _resultProcessor = new TestResultProcessor();
            }

            return(Task.FromResult(true));
        }
Esempio n. 3
0
        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;
            });
        }
Esempio n. 4
0
        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();
                }
            });
        }