Ⅰ. 插件描述
Test Anything Protocol for vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/vimtap'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/vimtap'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/vimtap'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/VimTAP
Ⅳ. 文档说明
The Test Anything Protocol makes testing with different languages in the same project
- It decouples the tests generating results from the harness interpreting the results.
With VimTAP we now have TAP for vim.
For now the following is implemented:
- Plan
- Ok
- Is & Isnt
- Like & Unlike
- Diag
Diag is probably not completely functional, yet. n, r and rn are all considered to
delimit lines.
Also a driver for running the tests from outside vim is provided. It can be used with
Perl's TAP::Parser runtests utility.
This package is still work in progress!