mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
Fix test/busted/outputHandlers/TAP.lua (#10881)
Extending the original TAP handler was not working as expected. This adds a new function for displaying the log. Ref: https://github.com/neovim/neovim/pull/10876
This commit is contained in:
parent
0ec80d5f64
commit
00d46f6328
@ -3,12 +3,14 @@
|
||||
local global_helpers = require('test.helpers')
|
||||
|
||||
return function(options)
|
||||
local busted = require 'busted'
|
||||
local handler = require 'busted.outputHandlers.TAP'(options)
|
||||
|
||||
handler.suiteEnd = function()
|
||||
local suiteEnd = function()
|
||||
io.write(global_helpers.read_nvim_log())
|
||||
return handler.suiteEnd()
|
||||
return nil, true
|
||||
end
|
||||
busted.subscribe({ 'suite', 'end' }, suiteEnd)
|
||||
|
||||
return handler
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user