GoogleTestAdapter.TestAdapter.TestExecutor.DoRunTests C# (CSharp) Méthode

DoRunTests() private méthode

private DoRunTests ( IEnumerable allTestCasesInExecutables, ICollection testCasesToRun, IRunContext runContext, IFrameworkHandle frameworkHandle, Stopwatch stopwatch ) : void
allTestCasesInExecutables IEnumerable
testCasesToRun ICollection
runContext IRunContext
frameworkHandle IFrameworkHandle
stopwatch Stopwatch
Résultat void
        private void DoRunTests(
            IEnumerable<TestCase> allTestCasesInExecutables, ICollection<TestCase> testCasesToRun,
            IRunContext runContext, IFrameworkHandle frameworkHandle, Stopwatch stopwatch)
        {
            bool isRunningInsideVisualStudio = !string.IsNullOrEmpty(runContext.SolutionDirectory);
            var reporter = new VsTestFrameworkReporter(frameworkHandle, isRunningInsideVisualStudio);
            var launcher = new DebuggedProcessLauncher(frameworkHandle);
            _executor = new GoogleTestExecutor(_testEnvironment);
            _executor.RunTests(allTestCasesInExecutables, testCasesToRun, reporter, launcher,
                runContext.IsBeingDebugged, runContext.SolutionDirectory);
            reporter.AllTestsFinished();

            stopwatch.Stop();
            _testEnvironment.LogInfo($"Google Test execution completed, overall duration: {stopwatch.Elapsed}.");
        }