![ruby runner otpions ruby runner otpions](https://rugsnmore.com.au/wp-content/uploads/2020/11/products-Ruby_Runner_1920_Brown.jpg)
If a Nailgun server runs on a different port with the required gemset, then RubyMine suggests to specify the desired port number. If a Nailgun server runs on the default port with the required gemset, RubyMine does nothing. If there is no running Nailgun server, or if there is a Nailgun server on a non-default port, or with a different gemset, then RubyMine suggests to specify the desired port number. When such a run/debug configuration is launched, RubyMine analyzes the running processes, and does one of the following, depending on the presence of the running Nailgun server: Specify the command-line arguments to be passed to the Ruby interpreter. Alternatively, click to create variables and specify their values in the Environment Variables dialog. Specify the list of environment variables as the name-value pairs, separated with semi-colons. For example, this option is in effect when the running script loads other scripts by relative paths. Specify the working directory used by the running task. Select this checkbox to enable the -trace option. If a pre-loaded server is already running, it will be selected from the list. If both Zeus and Spork DRb servers are running simultaneously, it is Zeus that gets priority. Select None if you want to execute a script or example locally, without any server. You can type the fully qualified path to the spec runner in the text field, or click, and select the desired runner in the dialog that opens.įrom the list, select the server to be used for executing scripts or examples. Select this checkbox if you want to use an alternative spec runner. By default, the latest available version is taken. The list shows the versions that are available in the Ruby SDK. Use this list to select the desired gem version, which will be used to run the tests. Learn more about the available options from Command line. Provide additional options to customize RSpec's behavior. This field is only available, if either the Spec script or Multiple specs option is selected. If no example is specified, all examples will be executed. Specify one or several names of the examples within the script to be executed. This field is only available, when the Multiple specs option is selected. Alternatively, click and select the specs in the dialog that opens.
![ruby runner otpions ruby runner otpions](https://xn--90abhccf7b.xn--p1ai/800/600/https/overcoder.net/img/1/13/36/123544.png)
This field is only available, when the Spec script option is selected. Specify the name of the script to be executed. Specify the mask of the spec file name, for example, **/*_spec.rb. This field is only available, when the All specs in folder option is selected.
![ruby runner otpions ruby runner otpions](https://i.etsystatic.com/15324628/r/il/94e9e0/2412224410/il_794xN.2412224410_ohw6.jpg)
Alternatively, click and select the specs directory in the dialog that opens. Specify the fully qualified path to the directory that contains the desired specs. Multiple specs: Select this option to run tests from multiple spec files. Spec script: Select this option to run a specific test. Specify the name of the current run/debug configuration.Īll specs in a folder: Select this option to run all tests in a particular directory. Select Create 'RSpec: ' or Create 'Minitest: ' and press Enter. Place the caret at the required test or test class name and press Alt+Enter. Open the test file in the editor and do one of the following:Ĭlick the Run button on the gutter next to the required test or test class. In the dialog that opens, specify the run/debug configuration parameters ( RSpec or Minitest), apply changes and close the dialog.Ĭreate a test configuration from the editor In the Project view Alt+1, right-click a specific test file or a directory containing the required tests, for example, test, spec, or features.įrom the context menu, select Create 'All specs in: ' or Run 'All tests in: ' depending on the used testing framework. Create a test configuration Create a test configuration from the Project view If necessary, you can create the required test run/debug configuration manually from the predefined template. When you run tests for the first time, RubyMine automatically creates a corresponding RSpec or Test::Unit/Shoulda/MiniTest temporary configuration, which can be saved.