add TSamFailedOnly command and change test output within the floating window

This commit is contained in:
2025-12-25 16:40:50 +01:00
parent cbc3e201ae
commit 1e2e881acd
17 changed files with 1074 additions and 448 deletions

View File

@@ -0,0 +1,15 @@
describe("test-samurai commands", function()
before_each(function()
vim.g.loaded_test_samurai_plugin = nil
vim.cmd("runtime plugin/test-samurai.lua")
end)
it("registers TSamFailedOnly command", function()
assert.equals(2, vim.fn.exists(":TSamFailedOnly"))
end)
it("registers <leader>te keymap", function()
local map = vim.fn.maparg("<leader>te", "n")
assert.is_true(map ~= nil and map ~= "")
end)
end)