Exemplo n.º 1
0
 public static void OnDiscoveryComplete(DiscoveryCompleteInfo info)
 {
     if (info.TestCasesToRun == 0)
     {
         throw new ArgumentException("Nothing to run, no tests were loaded");
     }
 }
Exemplo n.º 2
0
 private void OnDiscoveryComplete(DiscoveryCompleteInfo info)
 {
     lock (this.announcementLock)
     {
         this.announcer(Invariant($" * Running {info.TestCasesToRun} of {info.TestCasesDiscovered} tests."));
     }
 }
Exemplo n.º 3
0
 private static void OnDiscoveryComplete(DiscoveryCompleteInfo info)
 {
     lock (_consoleLock)
     {
         Console.WriteLine($"Running {info.TestCasesToRun} of {info.TestCasesDiscovered} tests...");
     }
 }
Exemplo n.º 4
0
 private static void OnDiscoveryComplete(DiscoveryCompleteInfo info)
 {
     lock (ConsoleLock)
     {
         _discoveryInfo = info;
         WriteLine($"Running {info.TestCasesToRun} test cases of {info.TestCasesDiscovered} discovered:");
     }
 }
Exemplo n.º 5
0
 private void DiscoveryCompleteHandler(DiscoveryCompleteInfo info)
 {
     logger.Info("### DISCOVERY COMPLETE ###");
     logger.InfoFormat("Total number of tests (methods): {0}", info.TestCasesDiscovered);
     logger.InfoFormat("Number of selected tests (methods): {0}", info.TestCasesToRun);
     if (info.TestCasesToRun == 0)
     {
         // I ensured at beginning of Execute method that testsToRun is not empty
         // thus this case shouldn't occur
         // I tried implementing by using just cancellation here,
         // but it has some issues
         logger.Info("No tests to run");
         // Note that ExecutionCompleteHandler does not get triggered
         // when there are no tests to be run unless if Cancel() is called
         runner.Cancel();
         // Note that runner Status is not set to Idle if execution is canceled.
         executionCanceled = true;
     }
 }
Exemplo n.º 6
0
 private static void OnDiscoveryComplete(DiscoveryCompleteInfo info)
 {
     Log.Debug($"Running {info.TestCasesToRun} of {info.TestCasesDiscovered} tests...");
 }
Exemplo n.º 7
0
 private void OnDiscoveryComplete(DiscoveryCompleteInfo obj)
 {
     lock (consoleLock)
         LambdaLogger.Log($"Running {obj.TestCasesToRun} of {obj.TestCasesDiscovered} tests...\n");
 }
Exemplo n.º 8
0
 private static void OnDiscoveryComplete(DiscoveryCompleteInfo obj)
 {
     Console.WriteLine("Discovery complete: ");
     Console.WriteLine("Tests discovered: " + obj.TestCasesDiscovered);
 }
Exemplo n.º 9
0
 static void OnDiscoveryComplete(DiscoveryCompleteInfo info)
 {
     lock (_ConsoleLock)
         R($"Running {info.TestCasesToRun} of {info.TestCasesDiscovered} tests...");
 }
Exemplo n.º 10
0
 private void OnTestSessionStart(DiscoveryCompleteInfo obj)
 {
     OnTestSessionStart(new TestSessionStart(DateTime.Now));
 }
Exemplo n.º 11
0
 static void OnDiscoveryComplete(DiscoveryCompleteInfo info)
 {
     lock (consoleLock)
         telemetryClient.TrackTrace($"Running {info.TestCasesToRun} of {info.TestCasesDiscovered} tests...", SeverityLevel.Information);
 }
Exemplo n.º 12
0
 protected virtual void OnDiscoveryComplete(DiscoveryCompleteInfo info)
 {
     lock (sync)
         Console.WriteLine($"Running {info.TestCasesToRun} of {info.TestCasesDiscovered} tests...");
 }
 void DiscoveryCompleteHandler(DiscoveryCompleteInfo obj)
 {
     Console.WriteLine("Discovery Complete.");
 }
Exemplo n.º 14
0
 private static void OnDiscoveryComplete(DiscoveryCompleteInfo obj)
 {
 }
Exemplo n.º 15
0
 static void OnErrorMessage(DiscoveryCompleteInfo info)
 {
     lock (consoleLock)
         Console.WriteLine($"Running {info.TestCasesToRun} of {info.TestCasesDiscovered} tests...");
 }
Exemplo n.º 16
0
 private static void DiscoveryComplete(DiscoveryCompleteInfo info)
 {
     Console.WriteLine("DiscoveryComplete.");
 }