Tests inside Sublime Text

Go to your Sublime Text 2 Packages directory:

  OS X: ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
  Windows: %APPDATA%/Sublime Text 2/Packages/
  Linux: ~/.config/sublime-text-2/Packages/

and clone the repository using the command below:

  git clone https://github.com/maltize/sublime-text-2-ruby-tests.git RubyTest

Ref: https://github.com/maltize/sublime-text-2-ruby-tests

After restarting Sublime Text, the RubyTest package supplies the following commands:
Commands:

Command-Shift-R: run a single test (if run on an it block) or group of tests (if run on a describe block)
Command-Shift-E: run the last test(s)
Command-Shift-T: run all the tests in current file
Command-Shift-X: Show test panel (when test panel visible hit esc to hide it)
Alt-Shift-V: Check RB, ERB file syntax

Switching between code and test (create a file if not found):
Command-. : Single View
Command-Ctrl-. : Split View

Advertisements

One thought on “Tests inside Sublime Text

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s