vim-test-github


Ⅰ. 插件描述

vim-test runner for GitHub

Ⅱ. 基本信息

创建日期:  2016-02-07
使用用户:  4
Github星:  7
插件作者:  Brooks Swinnerton

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# GitHub Test Runner for vim-test

This is a Vim plugin that adds a test runner to
vim-test specifically for
github/github.

This allows your cursor to be inside of a test definition, and it will figure
out the appropriate line number to run.

screencap

Installing

Install vim-test and this plugin:

Plug 'janko-m/vim-test'
Plug 'bswinnerton/vim-test-github'

Add the following after the test definition from above:

let test#runners = {'Ruby': ['GitHub']}

vim-test Configuration

Vim-test supports a [number of
strategies](https://github.com/janko-m/vim-test#strategies) to asynchronously
run tests from Vim. I like vimux, to use it
you can set the following in your ~/.vimrc:

let test#strategy = "vimux"

I'd also recommend making it easy to run vim-test from a key sequence:

nmap <silent> <leader>t :TestNearest<CR>
nmap <silent> <leader>T :TestFile<CR>
nmap <silent> <leader>a :TestSuite<CR>
nmap <silent> <leader>l :TestLast<CR>

Known Issues

  • Currently there is only support for minitest "spec" syntax

添加新评论