代码拉取完成,页面将自动刷新
# Run tests
# use with update_screenshot=true to update the screenshots
# use with dir=... to test a particular dir under tests/
# use with file=... to test a particular file
# use with line=... to target a test at that line in the file
test:
nvim --headless --noplugin -u ./scripts/minimal_init.lua -l ./scripts/test_cli.lua
# launches test version of nvim that has the same plugin configuration as what the tests get
# this is useful sometiemes to check what is going on when child neovim processes just hang without any output
launch-test-nvim:
nvim --noplugin -u ./scripts/test_plugin_config.lua -c GrugFar
# clean / update all screenshots
update-screenshots:
rm -rf tests/screenshots/*
make test
# Download 'mini.nvim' to use its 'mini.test' testing module
prepare:
make clean
@mkdir -p deps
git clone --depth=1 --single-branch https://github.com/echasnovski/mini.nvim deps/mini.nvim
@mkdir -p temp_test_dir
@mkdir -p temp_history_dir
# clean up
clean:
rm -rf deps
rm -rf temp_test_dir
rm -rf temp_history_dir
# lint
lint:
selene lua tests
stylua --check lua tests
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。