diff options
| -rw-r--r-- | Makefile | 11 | ||||
| -rw-r--r-- | tests/minimal_init.lua | 11 | ||||
| -rw-r--r-- | tests/pets/pets_spec.lua | 12 |
3 files changed, 0 insertions, 34 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index 54bc132..0000000 --- a/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -TESTS_INIT=tests/minimal_init.lua -TESTS_DIR=tests/ - -.PHONY: test - -test: - @nvim \ - --headless \ - --noplugin \ - -u ${TESTS_INIT} \ - -c "PlenaryBustedDirectory ${TESTS_DIR} { minimal_init = '${TESTS_INIT}' }" diff --git a/tests/minimal_init.lua b/tests/minimal_init.lua deleted file mode 100644 index 0841a82..0000000 --- a/tests/minimal_init.lua +++ /dev/null @@ -1,11 +0,0 @@ -local plenary_dir = os.getenv("PLENARY_DIR") or "/tmp/plenary.nvim" -local is_not_a_directory = vim.fn.isdirectory(plenary_dir) == 0 -if is_not_a_directory then - vim.fn.system({"git", "clone", "https://github.com/nvim-lua/plenary.nvim", plenary_dir}) -end - -vim.opt.rtp:append(".") -vim.opt.rtp:append(plenary_dir) - -vim.cmd("runtime plugin/plenary.vim") -require("plenary.busted") diff --git a/tests/pets/pets_spec.lua b/tests/pets/pets_spec.lua deleted file mode 100644 index 42ab112..0000000 --- a/tests/pets/pets_spec.lua +++ /dev/null @@ -1,12 +0,0 @@ -local plugin = require("plugin_name") - -describe("setup", function() - it("works with default", function() - assert("my first function with param = Hello!", plugin.hello()) - end) - - it("works with custom var", function() - plugin.setup({ opt = "custom" }) - assert("my first function with param = custom", plugin.hello()) - end) -end) |