Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc5057d3

Browse files
authored
fix(test): run tests automatically in test script (#1334)
Previously, the Makefile required a command to run tests after loading thetest 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 parentd7d808b commitc5057d3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎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+
localminitest=require('mini.test')
15+
minitest.setup()
16+
minitest.run()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp