vim-rspec-cucumber


Ⅰ. 插件描述

This is a lightweight RSpec / Cucumber runner for Vim and MacVim.

Ⅱ. 基本信息

创建日期:  2013-04-03
使用用户:  0
Github星:  0
插件作者:  Michael Deol

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# rspec-cucumber.vim

This is a lightweight RSpec / Cucumber runner for Vim and MacVim.
This is based off the original vim-rspec by thoughtbot:
vim-rspec

Installation

Recommended installation with vundle:

Plugin 'michaeldeol/vim-rspec-cucumber'

If using zsh on OS X it may be necessary to move /etc/zshenv to /etc/zshrc.

Configuration

Key mappings

Add your preferred key mappings to your .vimrc file.

" rspec-cucumber.vim mappings
map <Leader>t :call RunCurrentTestFile()<CR>
map <Leader>s :call RunNearestTest()<CR>
map <Leader>l :call RunLastTest()<CR>
map <Leader>a :call RunAllTests()<CR>

Custom runners

Overwrite the g:test_runner variable to set a custom launch script. At the
moment there are two MacVim-specific runners, i.e. os_x_terminal and
os_x_iterm. The default is os_x_terminal, but you can set this to anything
you want, provided you include the appropriate script inside the plugin's
bin/ directory.

iTerm instead of Terminal

If you use iTerm, you can set g:test_runner to use the included iterm
launching script. This will run the specs in the last session of the current
terminal.

let g:test_runner = "os_x_iterm"

Credits

thoughtbot

The original rspec.vim is maintained by thoughtbot, inc
and contributors
like you. Thank you!

It was strongly influenced by Gary Bernhardt's [Destroy All
Software](https://www.destroyallsoftware.com/screencasts) screencasts.

Updated by Michael Deol to accomodate both RSpec and Cucumber tests.

License

rspec-cucumber.vim is copyright © 2014 Michael Deol. It is free software, and may be
redistributed under the terms specified in the LICENSE file.

The names and logos for thoughtbot are trademarks of thoughtbot, inc.

添加新评论