Add a makefile for running unit tests (#671)
* Let tests run locally * fix typos * fix more typos * add makefile * actually add makefile * remove make clean
This commit is contained in:
parent
f700d35afa
commit
ea353e50a8
|
@ -39,4 +39,7 @@ luac.out
|
|||
*.x86_64
|
||||
*.hex
|
||||
|
||||
# Vim swap files
|
||||
*.swp
|
||||
|
||||
doc/tags
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
test:
|
||||
if [ ! -d ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim ]; \
|
||||
then \
|
||||
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim \
|
||||
~/.local/share/nvim/site/pack/vendor/start/plenary.nvim; \
|
||||
ln -f -s "$$(pwd)" ~/.local/share/nvim/site/pack/vendor/start; \
|
||||
fi; \
|
||||
nvim --headless --noplugin -u tests/minimal.vim \
|
||||
-c "PlenaryBustedDirectory tests/ {minimal_init = 'tests/minimal.vim'}"
|
Loading…
Reference in New Issue