Add way to run tests using my in-development vim debugger
This commit is contained in:
parent
77dc400077
commit
77522cbd44
2 changed files with 23 additions and 2 deletions
21
tests/.vimspector.json
Normal file
21
tests/.vimspector.json
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"configurations": {
|
||||||
|
"Run test": {
|
||||||
|
"adapter": "vim-debug-adapter",
|
||||||
|
"configuration": {
|
||||||
|
"request": "launch",
|
||||||
|
"cwd": "${workspaceRoot}",
|
||||||
|
"env": {
|
||||||
|
"VIMSPECTOR_MIMODE": "lldb"
|
||||||
|
},
|
||||||
|
"args": [
|
||||||
|
"--clean",
|
||||||
|
"--not-a-term",
|
||||||
|
"-S", "lib/run_test.vim",
|
||||||
|
"${file}",
|
||||||
|
"${TestFunction}"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
let s:single_test_timeout = 60000
|
let s:single_test_timeout = 60000
|
||||||
|
|
||||||
" Restrict the runtimepath to the exact minimum needed for testing
|
" Restrict the runtimepath to the exact minimum needed for testing
|
||||||
let &rtp = getcwd() . '/lib'
|
let &runtimepath = getcwd() . '/lib'
|
||||||
set runtimepath+=$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after
|
set runtimepath+=$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after
|
||||||
if has('packages')
|
if has('packages')
|
||||||
let &packpath = &runtimepath
|
let &packpath = &runtimepath
|
||||||
|
|
@ -71,7 +71,7 @@ func s:TestFailed()
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
func! Abort( timer_id )
|
func! Abort( timer_id )
|
||||||
if exists( '&debugfunc' ) && &debugfunc != ''
|
if exists( '&debugfunc' ) && &debugfunc !=# ''
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue