Example #1
0
        static async Task Main()
        {
            var stopwatch = Stopwatch.StartNew();

            for (int i = 0; i < Rounds; i++)
            {
                await KUnitTest.RunTestsAsync();
            }

            const int tests = TestCount * Rounds;

            Console.WriteLine($"Executed {tests} in {stopwatch.ElapsedMilliseconds} milliseconds");
            Console.WriteLine($"Amount of test detection trips: {Rounds}");
            Console.WriteLine($"Amount of tests per trip: {TestCount}");
            Console.WriteLine($"Amount of parallel tasks: {TaskCount}");
            Console.WriteLine($"Tests/Second: {tests/stopwatch.Elapsed.TotalSeconds}");
        }
Example #2
0
 static Task Main(string[] args) => KUnitTest.RunTestsPrintOutputAsync();