mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 22:30:04 +08:00
25 lines
594 B
Lua
Vendored
25 lines
594 B
Lua
Vendored
local level = 2
|
|
local info = debug.getinfo(1, 'Sf')
|
|
local source = info.source
|
|
|
|
local b = require('busted.core')()
|
|
|
|
b.register('file', 'file', {})
|
|
|
|
local testFileLoader = require 'busted.modules.standalone_loader'(b)
|
|
testFileLoader(info, { verbose = nil })
|
|
|
|
local execute = require('busted.execute')(b)
|
|
|
|
print(vim.inspect(execute))
|
|
print(vim.inspect(b))
|
|
print("===")
|
|
print(execute(1, {}))
|
|
print("===")
|
|
-- execute(1, {})
|
|
|
|
-- print(vim.inspect(b.execute))
|
|
-- print(vim.inspect(b.execute('file', './tests/plenary/bu/simple_busted_spec.lua')))
|
|
-- require('busted.init')(b)
|
|
-- print(vim.inspect(b))
|