mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-28 03:30:12 +02:00
feat(neotest): added <leader>tt
and <leader>tT
to run tests in file or all test files
This commit is contained in:
parent
2a3bac7690
commit
efc72b0649
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,8 @@ return {
|
||||||
-- args = { "-tags=integration" },
|
-- args = { "-tags=integration" },
|
||||||
-- },
|
-- },
|
||||||
-- },
|
-- },
|
||||||
|
status = { virtual_text = true },
|
||||||
|
output = { open_on_run = true },
|
||||||
quickfix = {
|
quickfix = {
|
||||||
open = function()
|
open = function()
|
||||||
if require("lazyvim.util").has("trouble.nvim") then
|
if require("lazyvim.util").has("trouble.nvim") then
|
||||||
|
@ -73,6 +75,8 @@ return {
|
||||||
end,
|
end,
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
|
{ "<leader>tt", function() require("neotest").run.run(vim.fn.expand("%")) end, desc = "Run File" },
|
||||||
|
{ "<leader>tT", function() require("neotest").run.run(vim.loop.cwd()) end, desc = "Run All Test Files" },
|
||||||
{ "<leader>tr", function() require("neotest").run.run() end, desc = "Run Nearest" },
|
{ "<leader>tr", function() require("neotest").run.run() end, desc = "Run Nearest" },
|
||||||
{ "<leader>tR", function() require("neotest").run.run(vim.fn.expand("%")) end, desc = "Run File" },
|
{ "<leader>tR", function() require("neotest").run.run(vim.fn.expand("%")) end, desc = "Run File" },
|
||||||
{ "<leader>ts", function() require("neotest").summary.toggle() end, desc = "Toggle Summary" },
|
{ "<leader>ts", function() require("neotest").summary.toggle() end, desc = "Toggle Summary" },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue