protected override async void RunTestCases(IEnumerable <IXunitTestCase> testCases, IMessageSink executionMessageSink, ITestFrameworkExecutionOptions executionOptions) { try { using (var assemblyRunner = new TestAssemblyRunner(TestAssembly, testCases, DiagnosticMessageSink, executionMessageSink, executionOptions)) await assemblyRunner.RunAsync(); } catch (Exception e) { Console.WriteLine(e); throw; } }
protected override async void RunTestCases( IEnumerable <IXunitTestCase> testCases, IMessageSink sink, ITestFrameworkExecutionOptions options ) { try { using (var runner = new TestAssemblyRunner(TestAssembly, testCases, DiagnosticMessageSink, sink, options)) { await runner.RunAsync(); Console.Out.Flush(); if (runner.ClusterTotals.Count > 0) { Console.WriteLine("--------"); Console.WriteLine("Individual cluster running times:"); foreach (var kv in runner.ClusterTotals) { Console.WriteLine($"- {kv.Key}: {kv.Value.Elapsed}"); } Console.WriteLine("--------"); } DumpSeenDeprecations(); if (runner.FailedCollections.Count > 0) { Console.WriteLine("--------"); Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("Failed collections:"); foreach (var t in runner.FailedCollections.OrderBy(p => p.Item1).ThenBy(t => t.Item2)) { var cluster = t.Item1; Console.WriteLine($" - {cluster}: {t.Item2}"); } Console.WriteLine("--------"); } DumpReproduceFilters(runner); Console.ResetColor(); } } catch (Exception e) { Console.WriteLine(e); throw; } }
protected override async void RunTestCases(IEnumerable<IXunitTestCase> testCases, IMessageSink executionMessageSink, ITestFrameworkExecutionOptions executionOptions) { using (var assemblyRunner = new TestAssemblyRunner(TestAssembly, testCases, DiagnosticMessageSink, executionMessageSink, executionOptions)) await assemblyRunner.RunAsync(); }
protected override async void RunTestCases(IEnumerable <IXunitTestCase> testCases, IMessageSink executionMessageSink, ITestFrameworkExecutionOptions executionOptions) { using (var assemblyRunner = new TestAssemblyRunner(TestAssembly, testCases, DiagnosticMessageSink, executionMessageSink, executionOptions)) await assemblyRunner.RunAsync(); }