This feature is supported in Ultimate edition only.
The following is only valid when Ruby Plugin is installed and enabled!
In this section:
Basics
Running test suits sometimes involves overheads, because every time a test suit is executed, the whole environment
(for example, the entire environment for applications) should be reloaded. You can avoid it using the
Zeus server
, which loads the environment only once.
With the Zeus server running in the background, you have a choice to execute any testing script using the Zeus server, or locally.
- Make sure that Zeus server is launched using IntelliJ IDEA and is running in the background.
- Run a test script, or one of its examples. Note that the option Zeus is automatically selected in the corresponding run configuration. If you want to run this test locally, you have to select the option None.
If you are going to run RSpec tests under Zeus server, make sure to use Zeus version 0.13.4.pre2, or higher.
- Make sure the breakpoints are set in the test script you want to debug.
- On the main toolbar, click the run/debug configuration selector, and choose .
- In the Run/Debug Configurations dialog box, create run/debug configuration for Zeus server. Refer to the section Creating and Editing Run/Debug Configurations for detailed description of the procedure.
- Launch Zeus in the debug mode. To do that, with the Zeus run/debug configuration selected, click
,
or press ⌃D⇧F9⌘F11⌥ F5⇧ F9.
- With the Zeus server running in the debug mode, run the desired test script.
Note that if you debug a test script, it will be executed without Zeus server.