Procházet zdrojové kódy

Add some (optional) verbose outputs to unit tests

hughsando před 6 roky
rodič
revize
77068e10c7
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  1. 6 0
      tests/unit/src/unit/TestMain.hx

+ 6 - 0
tests/unit/src/unit/TestMain.hx

@@ -126,6 +126,12 @@ class TestMain {
 			});
 		};
 		#end
+		#if sys
+		if (verbose)
+			runner.onTestStart.add(function(test) {
+				Sys.println(' $test...'); // TODO: need utest success state for this
+			});
+		#end
 		runner.run();
 	}
 }