mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
build: Remove busted output handler utfTerminalDetailed
Busted now contains "gtest", which can be used for the same purpose as utfTerminalDetailed.
This commit is contained in:
parent
ad8d415e3a
commit
484fd734ab
1
third-party/cmake/BuildLuarocks.cmake
vendored
1
third-party/cmake/BuildLuarocks.cmake
vendored
@ -57,7 +57,6 @@ add_custom_target(stable-busted-deps
|
||||
add_custom_command(OUTPUT ${DEPS_BIN_DIR}/busted
|
||||
COMMAND ${DEPS_BIN_DIR}/luarocks
|
||||
ARGS build https://raw.githubusercontent.com/Olivine-Labs/busted/master/busted-scm-0.rockspec CC=${DEPS_C_COMPILER} LD=${DEPS_C_COMPILER}
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/utfTerminalDetailed.lua
|
||||
${DEPS_INSTALL_DIR}/share/lua/5.1/busted/outputHandlers
|
||||
DEPENDS stable-busted-deps)
|
||||
add_custom_target(busted
|
||||
|
27
third-party/utfTerminalDetailed.lua
vendored
27
third-party/utfTerminalDetailed.lua
vendored
@ -1,27 +0,0 @@
|
||||
-- busted output handler that immediately prints file and test names before
|
||||
-- tests are executed. It simplifies identifying which tests are
|
||||
-- hanging/crashing
|
||||
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' .. colors.cyan(name) .. ':')
|
||||
end
|
||||
|
||||
handler.testStart = function(element, parent, status, debug)
|
||||
io.write('\n ' .. handler.getFullName(element) .. ' ... ')
|
||||
io.flush()
|
||||
end
|
||||
|
||||
busted.subscribe({ 'file', 'start' }, handler.fileStart)
|
||||
busted.subscribe({ 'test', 'start' }, handler.testStart)
|
||||
|
||||
return handler
|
||||
end
|
Loading…
Reference in New Issue
Block a user