Testura.Mutation.TestRunner.Console.XUnit.XUnitTestRunner.RunTests(AssemblyRunner)

Here are the examples of the csharp api Testura.Mutation.TestRunner.Console.XUnit.XUnitTestRunner.RunTests(AssemblyRunner) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 Source : XUnitTestRunner.cs
with MIT License
from Testura

public async Task<TestSuiteResult> RunTestsAsync(string dllPath)
        {
            _executionTime = 0;
            _finished = new ManualResetEvent(false);
            _results = new List<TestResult>();

            using (var runner = replacedemblyRunner.WithAppDomain(dllPath, shadowCopy: false))
            {
                runner.OnExecutionComplete = OnExecutionComplete;
                runner.OnTestFailed = OnTestFailed;
                runner.OnTestPreplaceded = OnTestPreplaceded;
                await Task.Run(() => RunTests(runner));

                _finished.WaitOne();
                _finished.Dispose();

                return new TestSuiteResult
                {
                    Name = Path.GetFileName(dllPath),
                    TestResults = _results,
                    ExecutionTime = TimeSpan.FromSeconds((int)_executionTime),
                    IsSuccess = _results.All(r => r.IsSuccess)
                };
            }
        }