Skip to content

Commit c5057d3

Browse files
authored
fix(test): run tests automatically in test script (#1334)
Previously, the Makefile required a command to run tests after loading the test script. Now, the test script itself runs the tests automatically, simplifying the Makefile and ensuring consistent test execution. Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
1 parent d7d808b commit c5057d3

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ install-pre-commit:
2424
pre-commit install
2525

2626
test:
27-
nvim --headless --noplugin -u ./scripts/test.lua -c "lua MiniTest.run()"
27+
nvim --headless --noplugin -u ./scripts/test.lua
2828

2929
all: luajit
3030

scripts/test.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ for name, url in pairs({
1111
vim.opt.runtimepath:append(install_path)
1212
end
1313

14-
require('mini.test').setup()
14+
local minitest = require('mini.test')
15+
minitest.setup()
16+
minitest.run()

0 commit comments

Comments
 (0)