Focussed testing in RubyMine

How to setup focussed testing in RubyMine:

Place focused_test.rb  in the folder above your $RAILS_ROOT (so multiple projects can share it).

In RubyMine:
Preferences -> External Tools -> Add

Name: Focussed Test
Group: Whatever
Program: /usr/bin/ruby
Parameters: $ProjectFileDir$/../focused_test.rb -b --line $LineNumber$ -f "$FilePath$"
Working Directory: $ProjectFileDir$

Preferences -> KeyMap
Create a shortcut to the external tool. I use F10.

You must be logged in to post a comment.