Exemple #1
0
        private void RunTests(IEnumerable <TestCase> tests)
        {
            _executor.InitTestRuns();

            foreach (var test in tests)
            {
                if (_cancelled)
                {
                    break;
                }

                _frameworkHandle.RecordStart(test);
                var result = RunTest(test);
                _frameworkHandle.RecordResult(result);
            }
        }
Exemple #2
0
        private void RunTests(IEnumerable <TestCase> tests)
        {
            _executor.InitTestRuns();

            LogDebug(TestMessageLevel.Informational, $"RunTests count: {System.Linq.Enumerable.Count(tests)}");

            switch (_settings.ExecutionMode)
            {
            case Catch2Interface.ExecutionModes.SingleTestCase:
                RunTests_Single(tests);
                break;

            default:
            case Catch2Interface.ExecutionModes.CombineTestCases:
                RunTests_Combine(tests);
                break;
            }
        }