Ver Fonte

Add some (optional) verbose outputs to unit tests

hughsando há 6 anos atrás
pai
commit
77068e10c7
1 ficheiros alterados com 6 adições e 0 exclusões
  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();
 	}
 }