-
Notifications
You must be signed in to change notification settings - Fork 12
Run Every Test
Alistair McKinnell edited this page Nov 21, 2015
·
5 revisions
Rationale
Usually I want to run the spec where my cursor is located. Sometimes I want to run every spec in a file. I do not want to have to first navigate to the outermost describe block to do this.
Mechanism
Save a macro that navigates to the top of the file, invokes every test, and then navigates back to the cursor.
Add the following macro to ~/Library/Preferences/RubyMineXX/options/macros.xml:
<application>
<component name="ActionMacroManager">
<macro name="Run Every Tests in File">
<action id="EditorTextStart" />
<action id="RunClass" />
<action id="Back" />
</macro>
</component>
</application>
I bind this macro to Control + Command + E (and alos to Option + Command + E for when I'm in refactoring mode).