diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-11-27 17:39:17 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-11-27 17:39:17 +0000 |
commit | 822161982a48e01537d7075226134b5e16a4f5a7 (patch) | |
tree | 527b06c7a147f973c48dd99de8c33f24fac67cf1 /tests | |
parent | 243dc405ce0cb16de1d1bed31197492dcc0d1f63 (diff) | |
download | prosody-822161982a48e01537d7075226134b5e16a4f5a7.tar.gz prosody-822161982a48e01537d7075226134b5e16a4f5a7.zip |
tests/test.lua: Print the current test being run if verbosity sufficient
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test.lua | 3 |
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); |