mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
test: improve test conventions
Specifically, functions that are run in the context of the test runner are put in module `test/testutil.lua` while the functions that are run in the context of the test session are put in `test/functional/testnvim.lua`. Closes https://github.com/neovim/neovim/issues/27004.
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
local t = require('test.functional.testutil')()
|
||||
local t = require('test.testutil')
|
||||
local n = require('test.functional.testnvim')()
|
||||
|
||||
local clear = t.clear
|
||||
local exec_lua = t.exec_lua
|
||||
local clear = n.clear
|
||||
local exec_lua = n.exec_lua
|
||||
local eq = t.eq
|
||||
local mkdir_p = t.mkdir_p
|
||||
local rmdir = t.rmdir
|
||||
local nvim_dir = t.nvim_dir
|
||||
local mkdir_p = n.mkdir_p
|
||||
local rmdir = n.rmdir
|
||||
local nvim_dir = n.nvim_dir
|
||||
local test_build_dir = t.paths.test_build_dir
|
||||
local test_source_path = t.paths.test_source_path
|
||||
local nvim_prog = t.nvim_prog
|
||||
local nvim_prog = n.nvim_prog
|
||||
local is_os = t.is_os
|
||||
local mkdir = t.mkdir
|
||||
|
||||
|
||||
Reference in New Issue
Block a user