From c998b5bb7e8e2a0ad08516de3e8b71dc10a3cd1e Mon Sep 17 00:00:00 2001 From: Mika Vilpas Date: Sat, 15 Jun 2024 08:53:55 +0300 Subject: [PATCH] ci: check that there are no #focus tags left over in the tests --- Makefile | 7 +++++++ spec/yazi/yazi_spec.lua | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 26cff9d..bf95444 100644 --- a/Makefile +++ b/Makefile @@ -35,6 +35,13 @@ init: lint: selene ./lua/ ./spec/ + @if grep -r -e "#focus" --include \*.lua .; then \ + echo "\n"; \ + echo "Error: ${COLOR_GREEN}#focus${COLOR_RESET} tags found in the codebase.\n"; \ + echo "Please remove them to prevent issues with not accidentally running all tests."; \ + exit 1; \ + fi + test: luarocks test --local diff --git a/spec/yazi/yazi_spec.lua b/spec/yazi/yazi_spec.lua index fcb90e5..6a47fba 100644 --- a/spec/yazi/yazi_spec.lua +++ b/spec/yazi/yazi_spec.lua @@ -48,7 +48,7 @@ describe('opening a file', function() ) end) - it('#focus opens yazi with the current directory selected', function() + it('opens yazi with the current directory selected', function() vim.api.nvim_command('edit /tmp/') plugin.yazi({