Ⅰ. 插件描述
:dog: Java Unit Test in VIMⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'wsdjeg/javaunit-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'wsdjeg/javaunit-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'wsdjeg/javaunit-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/wsdjeg/javaunit.vim
Ⅳ. 文档说明
###JavaUnit.vim
requirement
also you can use my fork which provide gradle support, wsdjeg/syntastic
if you do not intstall this plugin,JavaUnit will show result in its own buffer instead of unite.
install
NeoBundle 'wsdjeg/JavaUnit.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.