Back to Spacevim

README

bundle/JavaUnit.vim/README.md

2.4.01.8 KB
Original Source

JavaUnit.vim

requirement

  1. jdk

  2. artur-shaik/javacomplete2

  3. scrooloose/syntastic

also you can use my fork which provide gradle support, wsdjeg/syntastic

  1. Shougo/unite.vim

if you do not intstall this plugin,JavaUnit will show result in its own buffer instead of unite.

  1. tagbar

install

vim
NeoBundle 'wsdjeg/JavaUnit.vim'
vim
Plugin 'wsdjeg/JavaUnit.vim'

Command

JavaUnitExec

test the current methond(no need put the cursor on the methodName)

JavaUnitExec [args ...]

test specification method

example JavaUnitExec testMethod1 testMethod2 testMethod3 ...

JavaUnitTestMain

run the main methon of current class

also you can use JavaUnitTestAll,then will run all the testMethod in the current file

support for maven project

JavaUnitTestMaven test current file

JavaUnitTestMavenAll test this project

Mappings

q close the JavaUnit buffer.