Skip to content

Instantly share code, notes, and snippets.

@erochest
Created March 1, 2012 15:40
Show Gist options
  • Save erochest/1950584 to your computer and use it in GitHub Desktop.
Save erochest/1950584 to your computer and use it in GitHub Desktop.
" Run PHP Unit tests.
nmap \Tu :w<CR>:call Send_to_Tmux("rake php:unit\n")<CR>
" Run Cucumber, vanilla.
nmap \Tc :w<CR>:call Send_to_Tmux("rake cucumber:default\n")<CR>
" Re-run Cucumber.
nmap \Tr :w<CR>:call Send_to_Tmux("rake cucumber:rerun\n")<CR>
" Run Cucumber on all scenarios tagged '@current'
nmap \Tt :w<CR>:call Send_to_Tmux("rake cucumber:current\n")<CR>
" Run Cucumber on the current feature file.
nmap \Tf :w<CR>:call Send_to_Tmux("FEATURE=" . @% . " rake cucumber\n")<CR>
" Run Cucumber on scenarios tagged '@current' in the current feature file
nmap \Tf :w<CR>:call Send_to_Tmux("FEATURE=" . @% . " rake cucumber:current\n")<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment