better test runner
This commit is contained in:
parent
a5a06857fc
commit
58b14ca461
1 changed files with 33 additions and 26 deletions
|
|
@ -270,20 +270,27 @@ function! RunTests(filename, test_path)
|
||||||
let tmux_pane_target = tmux_pane."_testing:1.0"
|
let tmux_pane_target = tmux_pane."_testing:1.0"
|
||||||
echo tmux_pane_target
|
echo tmux_pane_target
|
||||||
|
|
||||||
|
let command = ""
|
||||||
|
if l:tmux_pane == "checkout"
|
||||||
|
" checkout uses py.test (or uh it will)
|
||||||
if a:test_path != ' '
|
if a:test_path != ' '
|
||||||
let full_test_path = a:filename." ".a:test_path
|
let full_test_path = a:filename."::".a:test_path
|
||||||
else
|
else
|
||||||
let full_test_path = a:filename
|
let full_test_path = a:filename
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let command = ""
|
if l:full_test_path != "::"
|
||||||
if l:tmux_pane == "checkout"
|
|
||||||
if l:full_test_path != " "
|
|
||||||
let command = "silent !tmux send-keys -t ".tmux_pane_target." C-c ' tox ".full_test_path." 2>/dev/null' Enter"
|
let command = "silent !tmux send-keys -t ".tmux_pane_target." C-c ' tox ".full_test_path." 2>/dev/null' Enter"
|
||||||
else
|
else
|
||||||
let command = "silent !tmux send-keys -t ".tmux_pane_target." C-c ' make test 2>/dev/null' Enter"
|
let command = "silent !tmux send-keys -t ".tmux_pane_target." C-c ' make test 2>/dev/null' Enter"
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
|
" yelp-main uses testify
|
||||||
|
if a:test_path != ' '
|
||||||
|
let full_test_path = a:filename." ".a:test_path
|
||||||
|
else
|
||||||
|
let full_test_path = a:filename
|
||||||
|
endif
|
||||||
if l:full_test_path != " "
|
if l:full_test_path != " "
|
||||||
let command = "silent !tmux send-keys -t ".tmux_pane_target." C-c ' testify ".full_test_path."' Enter"
|
let command = "silent !tmux send-keys -t ".tmux_pane_target." C-c ' testify ".full_test_path."' Enter"
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue