Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dmcinnes/ruby_single_test

VIM plugin for running a single ruby test under the cursor
https://github.com/dmcinnes/ruby_single_test

minitest rspec ruby-test test-unit vim vim-plugins vimrc

Last synced: 20 days ago
JSON representation

VIM plugin for running a single ruby test under the cursor

Awesome Lists containing this project

README

        

RubySingleTest
==============

VIM plugin for running a single Ruby test under the cursor.

Supports Test::Unit, Rspec and Minitest.

When editing a Ruby test file, hit
`.`
and the test the cursor is over, and only that test, will run in quickfix.
That's it!

(`` is usually `\` or `,` so the command would be `\.` or `,.`)

To remap the command, to `t` for instance, add something
like this to your .vimrc:
`nmap t ExecuteRubyTest`

Ruby Single Test default to using make! with a bang. To disable
this behavior drop this in your .vimrc:
`let g:ruby_single_test_no_bang = 1`

You will need to set the appropiate `makeprg` for this to work.