private void Initialize(TestLoggerEvents events, TestLoggerOptions options) { if (!GitHubActions.IsRunningInsideWorkflow()) { Console.WriteLine("WARN: Not running inside GitHub Actions, but using GitHub Actions Test Logger."); } Context = new TestLoggerContext(Console.Out, options); events.TestResult += (_, args) => Context.ProcessTestResult(args.Result); }
public TestLoggerContext(TextWriter output, TestLoggerOptions options) { Output = output; Options = options; }
public void Initialize(TestLoggerEvents events, Dictionary <string, string> parameters) => Initialize(events, TestLoggerOptions.Resolve(parameters));