mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 08:35:48 +02:00
enc: testing kotlin on windows
This commit is contained in:
parent
ef6ac90acf
commit
1d622094b9
5 changed files with 31 additions and 19 deletions
|
@ -108,7 +108,7 @@ if pcode.active_kotlin_config or false then
|
|||
-- setting cek
|
||||
-- https://stackoverflow.com/questions/9356543/logging-while-testing-through-gradle
|
||||
{ "<leader>T", "", desc = " Test" },
|
||||
{ "<leader>Ta", "<cmd>terminal ./gradlew test<cr>", desc = "Run All" },
|
||||
{ "<leader>Ta", "<cmd>terminal gradle test<cr>", desc = "Run All" },
|
||||
{
|
||||
"<leader>Tu",
|
||||
function()
|
||||
|
@ -119,7 +119,8 @@ if pcode.active_kotlin_config or false then
|
|||
current_word = current_word:gsub("fun", "")
|
||||
current_word = current_word:gsub("%(%)", "")
|
||||
current_word = current_word:gsub("{", "")
|
||||
vim.cmd("terminal ./gradlew test --tests *." .. all_trim(current_word))
|
||||
current_word = current_word:gsub("@Test", "")
|
||||
vim.cmd("terminal gradle test --tests *." .. all_trim(current_word))
|
||||
end,
|
||||
desc = "Run Under Cursor",
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue