diff options
Diffstat (limited to 'test/busted/outputHandlers/TAP.lua')
-rw-r--r-- | test/busted/outputHandlers/TAP.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/busted/outputHandlers/TAP.lua b/test/busted/outputHandlers/TAP.lua new file mode 100644 index 0000000000..3dd171dc1b --- /dev/null +++ b/test/busted/outputHandlers/TAP.lua @@ -0,0 +1,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 |