public async Task <MutationCoverage> RunCodeCoverage(CancellationToken cancellationToken) { var xunitHostRunner = new MemoryTest.XUnit.XUnitTestHostRunner(_testProjectAssemblyPath); xunitHostRunner.TestEnd += OnTestEndCoverage; await xunitHostRunner.RunTestsAsync(CancellationToken.None); return(ReadCoverageFile()); }
public async Task <TestResults> RunTests(TimeSpan timeout, IProgress <string> progress, IEnumerable <string> tests) { var hashedTests = new HashSet <string>(tests); var xunitHostRunner = new MemoryTest.XUnit.XUnitTestHostRunner(_testProjectAssemblyPath); xunitHostRunner.TestEnd += OnTestEnd; await xunitHostRunner.RunTestsAsync(CancellationToken.None, hashedTests); return(_testResults); }