Diff

tests/test.lua @ 2246:eb047fe305aa

tests/test.lua: Print the current test being run if verbosity sufficient
author Matthew Wild <mwild1@gmail.com>
date Fri, 27 Nov 2009 17:39:17 +0000
parent 1972:26d4b99ba211
child 2248:37344b18b551
line wrap: on
line diff
--- 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);