vspec


Ⅰ. 插件描述

Vim plugin: Testing framework for Vim script

Ⅱ. 基本信息

创建日期:  2010-03-01
使用用户:  68
Github星:  200
插件作者:  Kana Natsuno

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-vspec - Testing framework for Vim script

Build Status

vim-vspec is a testing framework for Vim script. It consists of:

  • Utilities to run tests in isolated Vim process,
  • A Vim plugin to write tests in a format which resembles RSpec, and
  • Additional syntax/indent files for Vim script to write tests.

vim-vspec is not a tool to set up environment to run tests. If you want to test a plugin which depends on some other plugins, you have to:

  • Install such dependencies to somewhere, and
  • Specify where the dependencies are installed to run tests.

These steps are tedious to do by hand. It is recommended to use vim-flavor to automate setting up test environment and running tests.

See also:

<!-- vim: set expandtab shiftwidth=4 softtabstop=4 textwidth=78 : -->

添加新评论