aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/query/highlights_spec.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/query/highlights_spec.lua b/tests/query/highlights_spec.lua
index c0b6a7820..ca573e086 100644
--- a/tests/query/highlights_spec.lua
+++ b/tests/query/highlights_spec.lua
@@ -8,6 +8,12 @@ local function check_assertions(file)
local buf = vim.fn.bufadd(file)
vim.fn.bufload(file)
local lang = parsers.get_buf_lang(buf)
+ assert.same(
+ 1,
+ vim.fn.executable "highlight-assertions",
+ '"highlight-assertions" not executable!'
+ .. ' Get it via "cargo install --git https://github.com/theHamsta/highlight-assertions"'
+ )
local assertions = vim.fn.json_decode(
vim.fn.system(
"highlight-assertions -p '" .. utils.get_parser_install_dir() .. "/" .. lang .. ".so'" .. " -s '" .. file .. "'"