Ⅰ. 插件描述
Keep Track of the Number of Tests in a Perl Test FileⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/perl-test-manage-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/perl-test-manage-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/perl-test-manage-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/perl-test-manage.vim
Ⅳ. 文档说明
NOTE!!! This script is deprecated and was superseded by the Test-Count CPAN module:
http://search.cpan.org/dist/Test-Count/
Please look into Test-Count which, despite being written in Perl, also supports some other programming languages and is more generic.
========================
This script helps keeping track of the number of tests in a Perl test
file (t/*.t) by counting '# TEST' comments.
In order to keep track of the number of tests you need to have a statement
like:
use Test::More tests => 20
at the beginning of the test file. Then you need to make sure, every test
has a corresponding '# TEST' comment. If you run several tests in a loop,
you can append asterisks plus number to the comment. So for example the
comment:
# TEST35
will add 15 tests to the test number.