Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dmcinnes/ruby_single_test
- Owner: dmcinnes
- Created: 2009-02-15T09:10:36.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2019-03-19T23:52:09.000Z (almost 6 years ago)
- Last Synced: 2025-01-05T19:42:23.847Z (about 1 month ago)
- Topics: minitest, rspec, ruby-test, test-unit, vim, vim-plugins, vimrc
- Language: Vim script
- Homepage: http://dougmcinnes.com/2009/02/16/ruby-single-test/
- Size: 5.86 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.