Ejemplo n.º 1
0
        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;
 }
Ejemplo n.º 3
0
 public void Initialize(TestLoggerEvents events, Dictionary <string, string> parameters) =>
 Initialize(events, TestLoggerOptions.Resolve(parameters));