Skip to content

Commit ed52c43

Browse files
committed
feat(plenary): remove test_harness/busted
1 parent 5b9b6f6 commit ed52c43

28 files changed

Lines changed: 34 additions & 2895 deletions

.github/workflows/docgen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ jobs:
3131
export PATH="${PWD}/_neovim/bin:${PATH}"
3232
export VIM="${PWD}/_neovim/share/nvim/runtime"
3333
nvim --version
34-
make docgen
34+
make docs
3535
git diff --exit-code

Makefile

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,32 @@
1-
.PHONY: test lint docgen
1+
DEPDIR ?= .deps
2+
PLENTEST := $(DEPDIR)/plentest.nvim
3+
DOCGEN := $(DEPDIR)/docgen.nvim
4+
DOCGEN_TAG := v1.0.1
5+
6+
.PHONY: plentest
7+
plentest: $(PLENTEST)
8+
9+
$(PLENTEST):
10+
git clone --filter=blob:none https://github.com/nvim-treesitter/plentest.nvim $(PLENTEST)
211

3-
test:
4-
nvim --headless --noplugin -u scripts/minimal_init.vim -c "lua require('neoplen.test_harness').test_directory('lua/tests/automated/', { minimal_init = './scripts/minimal_init.vim' })"
12+
.PHONY: test lint docgen
13+
test: $(PLENTEST)
14+
PLENTEST=$(PLENTEST) nvim --headless --clean -u scripts/minimal_init.lua \
15+
-c "lua require('plentest').test_directory('lua/tests/automated', { minimal_init = './scripts/minimal_init.lua' })"
516

617
lint:
718
luacheck lua/telescope
819

9-
.deps/docgen.nvim:
10-
git clone --depth 1 --branch v1.0.1 https://github.com/jamestrew/docgen.nvim $@
20+
.PHONY: docgen
21+
docgen: $(DOCGEN)
22+
23+
$(DOCGEN):
24+
git clone --filter=blob:none --branch $(DOCGEN_TAG) https://github.com/jamestrew/docgen.nvim $(DOCGEN)
1125

12-
docgen: .deps/docgen.nvim
26+
.PHONY: docs
27+
docs: $(DOCGEN)
1328
nvim -l scripts/gendocs.lua
29+
30+
.PHONY: clean
31+
clean:
32+
rm -rf $(DEPDIR)

lua/luassert/array.lua

Lines changed: 0 additions & 71 deletions
This file was deleted.

lua/luassert/assert.lua

Lines changed: 0 additions & 183 deletions
This file was deleted.

0 commit comments

Comments
 (0)