TAP.lua (414B)
1 -- Extends the upstream TAP handler, to display the log with suiteEnd. 2 3 local t_global = require('test.testutil') 4 5 return function(options) 6 local busted = require 'busted' 7 local handler = require 'busted.outputHandlers.TAP'(options) 8 9 local suiteEnd = function() 10 io.write(t_global.read_nvim_log(nil, true)) 11 return nil, true 12 end 13 busted.subscribe({ 'suite', 'end' }, suiteEnd) 14 15 return handler 16 end