Skip to content

Rails test utilities. Like the Sublime RubyTest plugin, without the extra stuff, and tailored to my particular development setup..

Notifications You must be signed in to change notification settings

btsai/sublime_rails_test

Repository files navigation

Toggle Rails Test File

Simple plugin and key binding [Cmd+.] to toggle between a Rails model / lib file or controller file and its related unit or functional test.

If there is a matching test method or model method for the method where the cursor is, it will do its best to also toggle and move the cursor to that method when it switches files.

Run Rails Test File

This is specific to the repeating minitest runner setup.

Run your current test suite [Cmd+Shift+] or [Cmd+k, Cmd+t, Cmd+a], or the current test where the cursor is [Cmd+] or [Cmd+k, Cmd+t, Cmd+t].

If you are on a model and there is a matching test file, it will open and run the test file.

Each test suite or specific test name will map to its own tab in iTerm, so that one there is a matching tab, every time you run the test, it will find and run the test in the same tab.

Installation

Sorry, I'm not pushing these through PackageControl so just clone to your Library/Application Support/Sublime/Packages folder.

About

Rails test utilities. Like the Sublime RubyTest plugin, without the extra stuff, and tailored to my particular development setup..

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published