cs-codex-dist-tests/Tests/CodexContinuousTests/Program.cs

33 lines
674 B
C#
Raw Normal View History

using ContinuousTests;
public class Program
{
public static void Main(string[] args)
{
2023-06-25 07:53:10 +00:00
Console.WriteLine("Codex Continous-Test-Runner.");
2023-06-28 14:19:37 +00:00
var runner = new ContinuousTestRunner(args, Cancellation.Cts.Token);
2023-06-28 14:19:37 +00:00
Console.CancelKeyPress += (sender, e) =>
{
Console.WriteLine("Stopping...");
e.Cancel = true;
Cancellation.Cts.Cancel();
2023-06-28 14:19:37 +00:00
};
runner.Run();
2023-06-28 14:19:37 +00:00
Console.WriteLine("Done.");
}
2023-09-21 08:33:09 +00:00
}
2023-09-21 08:33:09 +00:00
public static class Cancellation
{
static Cancellation()
{
2023-09-21 08:33:09 +00:00
Cts = new CancellationTokenSource();
}
2023-09-21 08:33:09 +00:00
public static CancellationTokenSource Cts { get; }
}