2021-11-17 09:00:00 +00:00
|
|
|
local map = vim.api.nvim_set_keymap
|
|
|
|
|
|
|
|
local options = {
|
2022-01-09 00:07:35 +00:00
|
|
|
silent = true,
|
2021-11-17 09:00:00 +00:00
|
|
|
}
|
|
|
|
|
2022-12-19 09:44:24 +00:00
|
|
|
map("n", "<leader>tf", ":TestFile<CR>", options)
|
|
|
|
map("n", "<leader>tg", ":TestVisit<CR>", options)
|
|
|
|
map("n", "<leader>tl", ":TestLast<CR>", options)
|
|
|
|
map("n", "<leader>tn", ":TestNearest<CR>", options)
|
|
|
|
map("n", "<leader>ts", ":TestSuite<CR>", options)
|
|
|
|
|
|
|
|
vim.cmd([[
|
|
|
|
let test#echo_command = 0
|
|
|
|
let test#neovim#start_normal = 1
|
2022-12-28 17:35:11 +00:00
|
|
|
let test#strategy = "floaterm"
|
2022-12-19 09:44:24 +00:00
|
|
|
|
|
|
|
let test#php#phpunit#executable = 'just test'
|
2022-12-28 17:56:34 +00:00
|
|
|
let test#php#phpunit#options = '--colors=always --testdox'
|
2022-12-19 09:44:24 +00:00
|
|
|
]])
|