vim-covered


Ⅰ. 插件描述

A vim plugin for Devel::CoverX::Covered allowing you to selectivly rerun tests

Ⅱ. 基本信息

创建日期:  2013-03-19
使用用户:  1
Github星:  2
插件作者:  Andreas Marienborg

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'omega/vim-covered'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'omega/vim-covered'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'omega/vim-covered'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/omega/vim-covered

Ⅳ. 文档说明

# vim-covered

Inspired by: http://use.perl.org/use.perl.org/_Ovid/journal/36030.html

Depends on:

Simply put, it gives you two functions: Coverage() and ReTest(). The first
one gives you a location-list of either tests that cover the file (or sub) you
are in, or if you are in a test file, it will give you a list of what source
files are covered by this test file.

ReTest() in a testfile will simply run prove on the file and show the TAP in
a new buffer. If you are in a source file, it will re-run the tests that cover
the source file, and if you are in a sub (and have current-func-info installed)
it will rerun testfiles that cover the current function.

In addition, it has a syntax highligher for TAP to make that window look
a little nicer on test output :)

添加新评论