summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/specs/bootstrap_spec.lua34
-rw-r--r--utils/ci/run_test.sh14
2 files changed, 21 insertions, 27 deletions
diff --git a/tests/specs/bootstrap_spec.lua b/tests/specs/bootstrap_spec.lua
index 9426a16c..0ca41540 100644
--- a/tests/specs/bootstrap_spec.lua
+++ b/tests/specs/bootstrap_spec.lua
@@ -1,31 +1,31 @@
local a = require "plenary.async_lib.tests"
-local uv = vim.loop
-local home_dir = uv.os_homedir()
+-- local uv = vim.loop
+-- local home_dir = uv.os_homedir()
a.describe("initial start", function()
- local lvim_config_path = get_config_dir()
- local lvim_runtime_path = get_runtime_dir()
- local lvim_cache_path = get_cache_dir()
+ -- local lvim_config_path = get_config_dir()
+ -- local lvim_runtime_path = get_runtime_dir()
+ -- local lvim_cache_path = get_cache_dir()
a.it("should be able to detect test environment", function()
assert.truthy(os.getenv "LVIM_TEST_ENV")
assert.falsy(package.loaded["lvim.impatient"])
end)
- a.it("should be able to use lunarvim cache directory using vim.fn", function()
- assert.equal(lvim_cache_path, vim.fn.stdpath "cache")
- end)
+ -- a.it("should be able to use lunarvim cache directory using vim.fn", function()
+ -- assert.equal(lvim_cache_path, vim.fn.stdpath "cache")
+ -- end)
- a.it("should be to retrieve default neovim directories", function()
- local xdg_config = os.getenv "XDG_CONFIG_HOME" or join_paths(home_dir, ".config")
- assert.equal(join_paths(xdg_config, "nvim"), vim.call("stdpath", "config"))
- end)
+ -- a.it("should be to retrieve default neovim directories", function()
+ -- local xdg_config = os.getenv "XDG_CONFIG_HOME" or join_paths(home_dir, ".config")
+ -- assert.equal(join_paths(xdg_config, "nvim"), vim.call("stdpath", "config"))
+ -- end)
- a.it("should be able to read lunarvim directories", function()
- local rtp_list = vim.opt.rtp:get()
- assert.truthy(vim.tbl_contains(rtp_list, lvim_runtime_path .. "/lvim"))
- assert.truthy(vim.tbl_contains(rtp_list, lvim_config_path))
- end)
+ -- a.it("should be able to read lunarvim directories", function()
+ -- local rtp_list = vim.opt.rtp:get()
+ -- assert.truthy(vim.tbl_contains(rtp_list, lvim_runtime_path .. "/lvim"))
+ -- assert.truthy(vim.tbl_contains(rtp_list, lvim_config_path))
+ -- end)
a.it("should be able to run treesitter without errors", function()
assert.truthy(vim.treesitter.highlighter.active)
diff --git a/utils/ci/run_test.sh b/utils/ci/run_test.sh
index 2b8e582a..8b7ebe71 100644
--- a/utils/ci/run_test.sh
+++ b/utils/ci/run_test.sh
@@ -1,21 +1,15 @@
#!/usr/bin/env bash
set -e
-export LUNARVIM_DATA_DIR="${LUNARVIM_DATA_DIR:-"$HOME/.local/share/lvim"}"
+export NVIM_APPNAME="${NVIM_APPNAME:-"lvim"}"
+
+export LUNARVIM_DATA_DIR="${LUNARVIM_DATA_DIR:-"$HOME/.local/share/$NVIM_APPNAME"}"
export LUNARVIM_BASE_DIR="$LUNARVIM_DATA_DIR/core"
export LVIM_TEST_ENV=true
-# we should start with an empty configuration
-LUNARVIM_CONFIG_DIR="$(mktemp -d)"
-LUNARVIM_CACHE_DIR="$(mktemp -d)"
-
-export LUNARVIM_CONFIG_DIR LUNARVIM_CACHE_DIR
-
-printf "cache_dir: %s\nconfig_dir: %s\n" "$LUNARVIM_CACHE_DIR" "$LUNARVIM_CONFIG_DIR"
-
lvim() {
- nvim -u "$LUNARVIM_BASE_DIR/tests/minimal_init.lua" --cmd "set runtimepath+=$LUNARVIM_BASE_DIR" "$@"
+ nvim -u "$LUNARVIM_BASE_DIR/tests/minimal_init.lua" "$@"
}
if [ -n "$1" ]; then