aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-04-10 02:51:27 +0300
committerZyX <kp-pav@yandex.ru>2017-04-10 02:51:27 +0300
commitbc61058dd89b45b77074dc72fbb71003a3961bfd (patch)
tree0fec825ced0b5249ce7d8124a241b2f5e99e6462
parentd909724d70acd680965b8f2963c79cee4d7fc23f (diff)
downloadrneovim-bc61058dd89b45b77074dc72fbb71003a3961bfd.tar.gz
rneovim-bc61058dd89b45b77074dc72fbb71003a3961bfd.tar.bz2
rneovim-bc61058dd89b45b77074dc72fbb71003a3961bfd.zip
tests: Print description also at the end of the suite
-rw-r--r--busted/outputHandlers/neovim.lua22
1 files changed, 7 insertions, 15 deletions
diff --git a/busted/outputHandlers/neovim.lua b/busted/outputHandlers/neovim.lua
index 3c77f57c0f..2e74e612a9 100644
--- a/busted/outputHandlers/neovim.lua
+++ b/busted/outputHandlers/neovim.lua
@@ -127,9 +127,7 @@ return function(options)
for _, t in ipairs(list) do
local fullname = getFileLine(t.element) .. colors.bright(t.name)
string = string .. testString:format(fullname)
- if options.deferPrint then
- string = string .. getDescription(t)
- end
+ string = string .. getDescription(t)
end
end
end
@@ -255,10 +253,8 @@ return function(options)
io.write(failureString)
io.flush()
- if not options.deferPrint then
- io.write(failureDescription(handler.failures[#handler.failures]))
- io.flush()
- end
+ io.write(failureDescription(handler.failures[#handler.failures]))
+ io.flush()
return nil, true
end
@@ -266,19 +262,15 @@ return function(options)
io.write(errorString)
io.flush()
- if not options.deferPrint then
- io.write(failureDescription(handler.errors[#handler.errors]))
- io.flush()
- end
+ io.write(failureDescription(handler.errors[#handler.errors]))
+ io.flush()
return nil, true
end
handler.error = function(element, parent, message, debug)
if element.descriptor ~= 'it' then
- if not options.deferPrint then
- io.write(failureDescription(handler.errors[#handler.errors]))
- io.flush()
- end
+ io.write(failureDescription(handler.errors[#handler.errors]))
+ io.flush()
errorCount = errorCount + 1
end