vimux-cucumber


Ⅰ. 插件描述

Run Cucumber Features through Vimux

Ⅱ. 基本信息

创建日期:  2012-04-14
使用用户:  10
Github星:  11
插件作者:  Claudio Ortolina

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

WHAT?

Heavily inspired by Vimux-ruby-test. Most of the codebase is directly taken from that plugin itself.

  • Run the feature your cursor is currently on
  • Run the entire feature you are working in
  • Streaming output to tmux via vimux

HOW?

Use any of the commands below. Map them to shortcuts
in your .vimrc for easy access.

  • RunFocusedCuke - run focused cuke
  • RunAllCukes - run all cukes in the current file

IMPORTANT: if you use this plugin and Vimux-Ruby-Test, you may want to share the same shortcut.
If you do, you can use the following configuration:

if exists('$TMUX')
  autocmd FileType ruby map <buffer> <Leader>f :RunRubyFocusedTest<CR>
  autocmd FileType ruby map <buffer> <Leader>t :RunAllRubyTests<CR>
  autocmd FileType cucumber map <Leader>f :RunFocusedCuke<CR>
  autocmd FileType cucumber map <Leader>t :RunAllCukes<CR>
endif

This assumes that your Vim configuration recognizes Cucumber features with the cucumber file type.

INSTALL

Put the contents of this directory into your pathogen bundle. That's it!

REQUIREMENTS

  • vim with ruby support (compiled +ruby)
  • vimux

CONTRIBUTORS:

Original code by:

添加新评论