Skip to content

jaisonerick/vim-ginkgo-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A simple ginkgo tests runner.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published