Ⅰ. 插件描述
Run ember-cli tests from within VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'jarrodctaylor/vim-ember-cli-test-runner'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'jarrodctaylor/vim-ember-cli-test-runner'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'jarrodctaylor/vim-ember-cli-test-runner'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/jarrodctaylor/vim-ember-cli-test-runner
Ⅳ. 文档说明
# vim-ember-cli-test-runner
If you are a Vim user and write Ember apps using ember-cli then this plugin is
for you. With this plugin you can run all of the tests for your Ember project,
a single module of tests, or one individual test all without leaving your Vim buffer.
The Plugin in Action
The gif shows tests written in CoffeeScript but this plugin will work for both JavaScript and CoffeeScript.

Requirements
You will need to have vim-dispatch
installed for this plugin to run the tests in an asynchronous manner.
Usage
The plugin provides three commands:
RunAllEmberTests
RunSingleEmberTest
RunSingleEmberTestModule
RerunLastEmberTestsEnsure that your cursor is within a module or test as appropriate for the
desired command that you are trying to run.
Installation
Use your plugin manager of choice.
git clone https://github.com/JarrodCTaylor/vim-ember-cli-test-runner ~/.vim/bundle/vim-ember-cli-test-runner
- Add
Bundle 'https://github.com/JarrodCTaylor/vim-ember-cli-test-runner'to .vimrc - Run
:BundleInstall
- Add
- Add
NeoBundle 'https://github.com/JarrodCTaylor/vim-ember-cli-test-runner'to .vimrc - Run
:NeoBundleInstall
- Add
- Add
Plug 'https://github.com/JarrodCTaylor/vim-ember-cli-test-runner'to .vimrc - Run
:PlugInstall
- Add