mirror of
https://github.com/neovim/neovim.git
synced 2024-12-26 14:11:15 -07:00
34c6e5beaf
* tests: move "busted" dir to "test" It is used for outputHandlers only, and clearly belongs to the tests. Use the full module name with the `-o` option to `busted` then for clarity. * luacheck * test/busted/outputHandlers/TAP.lua: use/extend upstream
15 lines
344 B
Lua
15 lines
344 B
Lua
-- Extends the upstream TAP handler, to display the log with suiteEnd.
|
|
|
|
local global_helpers = require('test.helpers')
|
|
|
|
return function(options)
|
|
local handler = require 'busted.outputHandlers.TAP'(options)
|
|
|
|
handler.suiteEnd = function()
|
|
io.write(global_helpers.read_nvim_log())
|
|
return handler.suiteEnd()
|
|
end
|
|
|
|
return handler
|
|
end
|