TAP.lua 425 B

1234567891011121314151617
  1. -- Extends the upstream TAP handler, to display the log with suiteEnd.
  2. local global_helpers = require('test.helpers')
  3. return function(options)
  4. local busted = require 'busted'
  5. local handler = require 'busted.outputHandlers.TAP'(options)
  6. local suiteEnd = function()
  7. io.write(global_helpers.read_nvim_log(nil, true))
  8. return nil, true
  9. end
  10. busted.subscribe({ 'suite', 'end' }, suiteEnd)
  11. return handler
  12. end