Ⅰ. 插件描述
A simple ginkgo tests runner.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'jaisonerick/vim-ginkgo-runner'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'jaisonerick/vim-ginkgo-runner'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'jaisonerick/vim-ginkgo-runner'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/jaisonerick/vim-ginkgo-runner
Ⅳ. 文档说明
# Vim Ginkgo Runner
Ginkgo test runner for Vim (with focus support).
Installation
Install via vundle:
Plugin 'jaisonerick/vim-ginkgo-runner'
Configuration
Key mappings
Add your key mappings to .vimrc:
map <Leader>t :call RunCurrentGinkgoFile()<CR>
map <Leader>s :call RunNearestGinkgo()<CR>
map <Leader>l :call RunLastGinkgo()<CR>
map <Leader>a :call RunAllGinkgo()<CR>
Custom command
Overwrite the g:ginkgo_command variable to execute a custom command. I use it
together with the
vim-tmux-runner plugin to run
the tests on a separate TMux split.
Example:
let g:ginkgo_command = "call VtrSendCommand('ginkgo {spec}')"
Credits
This plugin is strongly based on https://github.com/thoughtbot/vim-rspec.