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 (17:39 +0000)
committerMatthew Wild <mwild1@gmail.com>
Fri, 27 Nov 2009 17:39:17 +0000 (17:39 +0000)
tests/test.lua

index f5976a0285b0d99c984a61b71da54503759d74aa..2762e42e4a2dece407f3917357d07b588155f354 100644 (file)
@@ -149,6 +149,9 @@ function dotest(unitname)
                                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);