add TSamFailedOnly command and change test output within the floating window
This commit is contained in:
@@ -23,6 +23,10 @@ vim.api.nvim_create_user_command("TSamLast", function()
|
||||
require("test-samurai").test_last()
|
||||
end, { desc = "test-samurai: rerun last test command" })
|
||||
|
||||
vim.api.nvim_create_user_command("TSamFailedOnly", function()
|
||||
require("test-samurai").test_failed_only()
|
||||
end, { desc = "test-samurai: rerun failed tests from last scoped run" })
|
||||
|
||||
vim.keymap.set("n", "<leader>tn", function()
|
||||
require("test-samurai").test_nearest()
|
||||
end, { desc = "test-samurai: run nearest test" })
|
||||
@@ -42,3 +46,7 @@ end, { desc = "test-samurai: run all tests in project (per runner)" })
|
||||
vim.keymap.set("n", "<leader>tl", function()
|
||||
require("test-samurai").test_last()
|
||||
end, { desc = "test-samurai: rerun last test command" })
|
||||
|
||||
vim.keymap.set("n", "<leader>te", function()
|
||||
require("test-samurai").test_failed_only()
|
||||
end, { desc = "test-samurai: rerun failed tests from last scoped run" })
|
||||
|
||||
Reference in New Issue
Block a user