aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-11-27 17:39:17 +0000
committerMatthew Wild <mwild1@gmail.com>2009-11-27 17:39:17 +0000
commit822161982a48e01537d7075226134b5e16a4f5a7 (patch)
tree527b06c7a147f973c48dd99de8c33f24fac67cf1 /tests/test.lua
parent243dc405ce0cb16de1d1bed31197492dcc0d1f63 (diff)
downloadprosody-822161982a48e01537d7075226134b5e16a4f5a7.tar.gz
prosody-822161982a48e01537d7075226134b5e16a4f5a7.zip
tests/test.lua: Print the current test being run if verbosity sufficient
Diffstat (limited to 'tests/test.lua')
-rw-r--r--tests/test.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test.lua b/tests/test.lua
index f5976a02..2762e42e 100644
--- a/tests/test.lua
+++ b/tests/test.lua
@@ -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);