diff options
author | Daniel Hahler <git@thequod.de> | 2019-08-29 22:11:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-29 22:11:51 +0200 |
commit | 00d46f63286461eec4d7b2d7cae15fbe0d9cabdb (patch) | |
tree | 9924aec4e6e34c2bf3f89f05cd861dbe9c4eb705 | |
parent | 0ec80d5f64666f143abd0ded63df14f7a21433ac (diff) | |
download | rneovim-00d46f63286461eec4d7b2d7cae15fbe0d9cabdb.tar.gz rneovim-00d46f63286461eec4d7b2d7cae15fbe0d9cabdb.tar.bz2 rneovim-00d46f63286461eec4d7b2d7cae15fbe0d9cabdb.zip |
Fix test/busted/outputHandlers/TAP.lua (#10881)
Extending the original TAP handler was not working as expected.
This adds a new function for displaying the log.
Ref: https://github.com/neovim/neovim/pull/10876
-rw-r--r-- | test/busted/outputHandlers/TAP.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/busted/outputHandlers/TAP.lua b/test/busted/outputHandlers/TAP.lua index 3dd171dc1b..8dc4ff55b6 100644 --- a/test/busted/outputHandlers/TAP.lua +++ b/test/busted/outputHandlers/TAP.lua @@ -3,12 +3,14 @@ local global_helpers = require('test.helpers') return function(options) + local busted = require 'busted' local handler = require 'busted.outputHandlers.TAP'(options) - handler.suiteEnd = function() + local suiteEnd = function() io.write(global_helpers.read_nvim_log()) - return handler.suiteEnd() + return nil, true end + busted.subscribe({ 'suite', 'end' }, suiteEnd) return handler end |