Skip to content

Instantly share code, notes, and snippets.

@brendanjerwin
Created May 21, 2012 18:36
Show Gist options
  • Save brendanjerwin/2763821 to your computer and use it in GitHub Desktop.
Save brendanjerwin/2763821 to your computer and use it in GitHub Desktop.
map <leader>d :echo system("screen -S specs -p 0 -X stuff 'shopt -s nullglob\n export PS1=\n cd " . getcwd() . "\nclear\n mocha debug -R spec " . expand("%:p:h") . "/*.spec.js " . expand("%:p:h") . "/*.spec*/**/*.spec.js\n'")<CR>
map <leader>t :echo system("screen -S specs -p 0 -X stuff 'shopt -s nullglob\n export PS1=\n cd " . getcwd() . "\nclear\n mocha -R spec " . expand("%:p:h") . "/*.spec.js " . expand("%:p:h") . "/*.spec*/**/*.spec.js\n'")<CR>
map <leader>T :echo system("screen -S spec_suite -p 0 -X stuff 'export PS1=\n cd " . getcwd() . "\nclear\n mocha -R progress " . getcwd() . "/**/*.spec.js\n'")<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment