From b004d74bb53430aab1f98e4ecd38a3be6ecd0ae3 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sat, 20 Nov 2021 17:09:32 +0100 Subject: Add assert that "highlight-assertions" is executable --- tests/query/highlights_spec.lua | 6 ++++++ 1 file changed, 6 insertions(+) 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 .. "'" -- cgit v1.2.3-70-g09d2