Skip to content

owenthereal/vimux-ruby-test

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 

Repository files navigation

WHAT?

  • Run the test/spec your cursor is currently on
  • Run the context your cursor is currently in
  • Run the entire test/spec you are working in
  • Streaming output to tmux via vimux

This plugin currently supports

  • test/unit
  • dust
  • rspec
  • shoulda

HOW?

Use any of the commands below. Map them to shortcuts in your .vimrc for easy access.

  • RunRubyFocusedTest - run focused test/spec
  • RunRailsFocusedTest - run focused test (no spec support) in a Rails app
  • RunRubyFocusedContext - run current context (rspec, shoulda)
  • RunAllRubyTests - run all the tests/specs in the current file

You can also use the following settings in .vimrc to configure the command used to run ruby tests:

let g:vimux_ruby_cmd_unit_test = "bundle exec ruby"
let g:vimux_ruby_cmd_all_tests = "testdrb"
let g:vimux_ruby_cmd_context = "FOO=bar ruby"

INSTALL

Put the contents of this directory into your pathogen bundle. That's it!

REQUIREMENTS

  • vim with ruby support (compiled +ruby)
  • vimux

CONTRIBUTORS:

About

vim plugin to run ruby tests using https://github.com/benmills/vimux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%