mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Allow a single unittest file to be run.
With this, you can now run a single unit test file using: TEST_FILE=/path/to/file make unittest For example, to just run the path unit tests, you can do: TEST_FILE=test/unit/path.moon make unittest
This commit is contained in:
parent
247984d132
commit
f9885f0b6a
@ -2,6 +2,9 @@ get_filename_component(BUSTED_DIR ${BUSTED_PRG} PATH)
|
||||
set(ENV{PATH} "${BUSTED_DIR}:$ENV{PATH}")
|
||||
set(ENV{NVIM_TEST_LIB} ${NVIM_TEST_LIB})
|
||||
set(ENV{TEST_INCLUDES} ${TEST_INCLUDES})
|
||||
if(DEFINED ENV{TEST_FILE})
|
||||
set(TEST_DIR $ENV{TEST_FILE})
|
||||
endif()
|
||||
|
||||
execute_process(
|
||||
COMMAND ${BUSTED_PRG} -o ${BUSTED_OUTPUT_TYPE} --pattern=.moon ${TEST_DIR}
|
||||
|
Loading…
Reference in New Issue
Block a user