tests/test.lua: Print the current test being run if verbosity sufficient
authorMatthew Wild <mwild1@gmail.com>
Fri, 27 Nov 2009 17:39:17 +0000
changeset 2246 eb047fe305aa
parent 2245 df9e18f5c808
child 2247 f62af2a9974e
tests/test.lua: Print the current test being run if verbosity sufficient
tests/test.lua
--- a/tests/test.lua	Fri Nov 27 17:33:55 2009 +0000
+++ b/tests/test.lua	Fri Nov 27 17:39:17 2009 +0000
@@ -149,6 +149,9 @@
 				print("WARNING: ", unitname.."."..name.." has no test!");
 			end
 		else
+			if verbosity >= 4 then
+				print("INFO: ", "Testing "..unitname.."."..name);
+			end
 			local line_hook, line_info = new_line_coverage_monitor(fn);
 			debug.sethook(line_hook, "l")
 			local success, ret = pcall(test, f, unit);