mirror of
https://github.com/neovim/neovim.git
synced 2024-12-26 14:11:15 -07:00
17 lines
425 B
Lua
17 lines
425 B
Lua
-- Extends the upstream TAP handler, to display the log with suiteEnd.
|
|
|
|
local global_helpers = require('test.helpers')
|
|
|
|
return function(options)
|
|
local busted = require 'busted'
|
|
local handler = require 'busted.outputHandlers.TAP'(options)
|
|
|
|
local suiteEnd = function()
|
|
io.write(global_helpers.read_nvim_log(nil, true))
|
|
return nil, true
|
|
end
|
|
busted.subscribe({ 'suite', 'end' }, suiteEnd)
|
|
|
|
return handler
|
|
end
|