aboutsummaryrefslogtreecommitdiff
path: root/test/busted/outputHandlers/TAP.lua
blob: 3dd171dc1be0c62f48dd3c1e19271efcd6d7f065 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-- 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