Exemplo n.º 1
0
        public async Task <MutationCoverage> RunCodeCoverage(CancellationToken cancellationToken)
        {
            var xunitHostRunner = new MemoryTest.XUnit.XUnitTestHostRunner(_testProjectAssemblyPath);

            xunitHostRunner.TestEnd += OnTestEndCoverage;

            await xunitHostRunner.RunTestsAsync(CancellationToken.None);

            return(ReadCoverageFile());
        }
Exemplo n.º 2
0
        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);
        }