neovim/test/busted/outputHandlers/TAP.lua
Daniel Hahler 34c6e5beaf
tests: move "busted" dir to "test" (#10518)
* 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
2019-07-16 22:02:50 +02:00

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