Skip to content

Instantly share code, notes, and snippets.

@Petesta
Created July 2, 2015 04:04
Show Gist options
  • Save Petesta/0052f0cb9ac141df666d to your computer and use it in GitHub Desktop.
Save Petesta/0052f0cb9ac141df666d to your computer and use it in GitHub Desktop.
" 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