diff --git a/.busted b/.busted index 98b3032..7ac5ad6 100644 --- a/.busted +++ b/.busted @@ -1,5 +1,6 @@ return { _all = { + lua = "./tests/bootstrap-busted.sh", coverage = false, }, default = { diff --git a/tests/bootstrap-busted.sh b/tests/bootstrap-busted.sh new file mode 100755 index 0000000..a55cced --- /dev/null +++ b/tests/bootstrap-busted.sh @@ -0,0 +1,2 @@ +#!/bin/sh +nvim -l ./tests/busted.lua $@ diff --git a/tests/busted.lua b/tests/busted.lua new file mode 100644 index 0000000..a198c89 --- /dev/null +++ b/tests/busted.lua @@ -0,0 +1,14 @@ +#!/usr/bin/env -S nvim -l + +vim.env.LAZY_STDPATH = ".tests" +load(vim.fn.system("cat $(pwd)/bootstrap.lua"))() +-- +-- -- Setup lazy.nvim +require("lazy.minit").busted({ + spec = { + "LazyVim/starter", + "williamboman/mason-lspconfig.nvim", + "williamboman/mason.nvim", + "nvim-treesitter/nvim-treesitter", + }, +})