mirror of
https://github.com/neovim/neovim.git
synced 2026-04-05 07:09:23 +00:00
deps: Update busted and dependencies
This commit is contained in:
9
third-party/utfTerminalDetailed.lua
vendored
9
third-party/utfTerminalDetailed.lua
vendored
@@ -1,13 +1,18 @@
|
||||
-- busted output handler that immediately prints file and test names before
|
||||
-- tests are executed. It simplifies identifying which tests are
|
||||
-- hanging/crashing
|
||||
local ansicolors = require 'ansicolors'
|
||||
if package.config:sub(1,1) == '\\' and not os.getenv("ANSICON") then
|
||||
-- Disable colors on Windows.
|
||||
colors = setmetatable({}, {__index = function() return function(s) return s end end})
|
||||
else
|
||||
colors = require 'term.colors'
|
||||
end
|
||||
|
||||
return function(options, busted)
|
||||
local handler = require 'busted.outputHandlers.utfTerminal'(options, busted)
|
||||
|
||||
handler.fileStart = function(name)
|
||||
io.write('\n' .. ansicolors('%{cyan}' .. name) .. ':')
|
||||
io.write('\n' .. colors.cyan(name) .. ':')
|
||||
end
|
||||
|
||||
handler.testStart = function(element, parent, status, debug)
|
||||
|
||||
Reference in New Issue
Block a user