behave test language need to execute different lines of the behave feature file, for example, if I want to test the line number 99, I'll need to input the following line in the terminal
behave features/target.feature:99 -k
Currently I'm using Tmux and vim as my IDE. I have 2 tmux panes and A and B, vim editor is opened in pane A (as the editing/developing environment). pane B is simply a terminal used as the running the test
What I want' to achieve is: Get the current cursor-marked line number in the file open by vim in pane A(ex. 99) and send this line information to create a shell command: behave features/target.feature:99 -k and send this command to Tmux pane B to excut
So far I've tried
let runLine = line('.')
"autocmd FileType text nnoremap <space>r !sh -xc 'behave features/navmemory.feature:&runLine -k'
But the part for sending it to pane B and execute is missing and I don't know how can I do it