Configure custom rspec runner script

Hello,
On mac with RM 2021.3.1

Is needed to run rspec with CI=1 or tests will fail.

For example working command line from terminal looks like this:

CI=1 rspec spec/features/admin/

Can anyone guide me how to configure RubyMine to run integrated rspec tests like that using CI=1? So I can use RM GUI not terminal for test runs.

 

Best regards,

Ainars

0

Hello Ainars,

at the moment it's only possible to specify a runner option in the Run configuration. You can also choose a custom runner script but it won't allow you to edit it. As a workaround, you can try Gem command Run configuration.
You're also welcome to submit it as a feature request on our tracker specifying which options you'd like to see configurable:
https://youtrack.jetbrains.com/issues/RUBY

0

Olga, could you be more specific about that workaround is meant with "Gem command Run configuration"? Anything that could be working, will suit for me at this point.

0

Here's our help documentation regarding Gem command Run configuration that you can create:

https://www.jetbrains.com/help/ruby/run-debug-configuration-gem-command.html

0

This can be closed, thank you.

0

请先登录再写评论。