10 lines
395 B
VimL
10 lines
395 B
VimL
![]() |
|
||
|
" Create command for running busted
|
||
|
command! -nargs=1 -complete=file PlenaryBustedFile
|
||
|
\ lua require('plenary.test_harness').test_file([[<args>]])
|
||
|
|
||
|
command! -nargs=+ -complete=file PlenaryBustedDirectory
|
||
|
\ lua require('plenary.test_harness').test_directory_command([[<args>]])
|
||
|
|
||
|
nnoremap <Plug>PlenaryTestFile :lua require('plenary.test_harness').test_file(vim.fn.expand("%:p"))<CR>
|