-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #324 from cameronr/unit-testing
Unit testing
- Loading branch information
Showing
26 changed files
with
1,256 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
# Auto-generated tag files | ||
doc/tags | ||
.luarc.json | ||
.build_tools | ||
|
||
tests/test_sessions | ||
tests/custom_sessions | ||
tests/test_git | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
PLENARY_VER = v0.1.4 | ||
PLENARY_DIR = .build_tools/plenary | ||
PLENARY_URL = https://github.com/nvim-lua/plenary.nvim | ||
|
||
FILES := $(wildcard tests/*_spec.lua) | ||
|
||
.PHONY: test $(FILES) args-tests | ||
test: $(PLENARY_DIR) $(FILES) args-tests | ||
|
||
$(FILES): | ||
nvim --clean --headless --embed -u tests/minimal.vim +"PlenaryBustedFile $@" | ||
|
||
args-tests: | ||
nvim --clean --headless --embed -u tests/minimal.vim +"PlenaryBustedFile tests/args/args_setup_spec.lua" | ||
nvim --clean --headless --embed -u tests/minimal.vim +"PlenaryBustedFile tests/args/args_not_enabled_spec.lua" | ||
nvim --clean --headless --embed -u tests/minimal.vim +"PlenaryBustedFile tests/args/args_single_dir_enabled_spec.lua" | ||
nvim --clean --headless --embed -u tests/minimal.vim +"PlenaryBustedFile tests/args/args_files_enabled_spec.lua" | ||
|
||
|
||
$(PLENARY_DIR): | ||
git clone --depth=1 --branch $(PLENARY_VER) $(PLENARY_URL) $(PLENARY_DIR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.