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:
amlmn 2021-11-02 12:29:50 -07:00 committed by GitHub
parent f700d35afa
commit ea353e50a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

3
.gitignore vendored
View File

@ -39,4 +39,7 @@ luac.out
*.x86_64
*.hex
# Vim swap files
*.swp
doc/tags

9
makefile Normal file
View File

@ -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'}"