From bc61058dd89b45b77074dc72fbb71003a3961bfd Mon Sep 17 00:00:00 2001 From: ZyX Date: Mon, 10 Apr 2017 02:51:27 +0300 Subject: [PATCH] tests: Print description also at the end of the suite --- busted/outputHandlers/neovim.lua | 22 +++++++--------------- 1 file 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