mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
tests: Print description also at the end of the suite
This commit is contained in:
parent
d909724d70
commit
bc61058dd8
@ -127,9 +127,7 @@ return function(options)
|
|||||||
for _, t in ipairs(list) do
|
for _, t in ipairs(list) do
|
||||||
local fullname = getFileLine(t.element) .. colors.bright(t.name)
|
local fullname = getFileLine(t.element) .. colors.bright(t.name)
|
||||||
string = string .. testString:format(fullname)
|
string = string .. testString:format(fullname)
|
||||||
if options.deferPrint then
|
string = string .. getDescription(t)
|
||||||
string = string .. getDescription(t)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -255,10 +253,8 @@ return function(options)
|
|||||||
io.write(failureString)
|
io.write(failureString)
|
||||||
io.flush()
|
io.flush()
|
||||||
|
|
||||||
if not options.deferPrint then
|
io.write(failureDescription(handler.failures[#handler.failures]))
|
||||||
io.write(failureDescription(handler.failures[#handler.failures]))
|
io.flush()
|
||||||
io.flush()
|
|
||||||
end
|
|
||||||
return nil, true
|
return nil, true
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -266,19 +262,15 @@ return function(options)
|
|||||||
io.write(errorString)
|
io.write(errorString)
|
||||||
io.flush()
|
io.flush()
|
||||||
|
|
||||||
if not options.deferPrint then
|
io.write(failureDescription(handler.errors[#handler.errors]))
|
||||||
io.write(failureDescription(handler.errors[#handler.errors]))
|
io.flush()
|
||||||
io.flush()
|
|
||||||
end
|
|
||||||
return nil, true
|
return nil, true
|
||||||
end
|
end
|
||||||
|
|
||||||
handler.error = function(element, parent, message, debug)
|
handler.error = function(element, parent, message, debug)
|
||||||
if element.descriptor ~= 'it' then
|
if element.descriptor ~= 'it' then
|
||||||
if not options.deferPrint then
|
io.write(failureDescription(handler.errors[#handler.errors]))
|
||||||
io.write(failureDescription(handler.errors[#handler.errors]))
|
io.flush()
|
||||||
io.flush()
|
|
||||||
end
|
|
||||||
errorCount = errorCount + 1
|
errorCount = errorCount + 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user