#vimtestic.vim
vimtestic.vim is a vim plugin for quickly triggering test running.
-
Set your test runner using
:TestWith rspec -
Run whole test suite with
<leader> r -
Run a specific test file/target
Specific file
Open the test file that you would like to focus on and enter
<leader> Tto mark it as the current test.Specific target
Set a specific target with the command
:TestTarget [target] -
Enter
<leader> tto run that one specific file or target
I suggest adding the following two lines to your ~/.vimrc
set exrc " Load a directory specific .vimrc
set secure " Don't allow that vimdc to run anything dangerous
Then create (in your project folder) a .vimrc file with the contents
call vimtestic#core#TestWith('rake')
- Rspec
- Rake
- Django
I will add more but feel free to pull request :)
New runners can be added in autoload/vimtestic/[name].vim.
See the existing runners as examples.
Instalation (With Vundle)
-
Add the following line to your
.vimrc.Bundle 'https://github.com/markmcconachie/vimtestic.git' -
Run this command on vim.
:BundleInstall
The MIT License. See LICENSE.