Created
July 2, 2015 04:04
-
-
Save Petesta/0052f0cb9ac141df666d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Ex. This is what the call would look like on the command line | |
" sbt 'test-only test.ApplicationSpec' | |
function! SBTTestOnly() | |
let b:current_filename = split(split(@%, '/')[1], '\.')[0] | |
let b:sbt = ":Dispatch sbt 'test-only test.".b:current_filename."'" | |
execute b:sbt | |
endfunction | |
command! -nargs=0 SBT :call SBTTestOnly() | |
" In the above function at test. test is the package name and should match your package name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment