Run Configuration Cucumber Tests

Answered

Hello, 

In Rubymine there are a few different locations to run cucumber tests from and from each location it creates a different run configuration. Sometimes we want to run one scenario and it generates a new run configuration which doesn't have our custom runner options in.

Is there a way to set a central run config to be used or is there a way to force the use of a run config

Many Thanks 

5 comments
Comment actions Permalink

Hello Gareth,

just to be sure, do you mean specifying some options that need to be used for newly created Run configurations? It's possible to set them in the corresponding template Run configuration, although we have an issue when not all the settings are used from it (https://youtrack.jetbrains.com/issue/RUBY-16779

1
Comment actions Permalink

Hi Olga, 

Thanks for the response. 

Yes, it seems that every time I run from a different location in Rubymine, I have a different run configuration generated which then builds up to quite a few over time. I just thought it would be possible to have one configuration to work for all. The template I have used previously however Rubymine still generates run config every time. 

 

1
Comment actions Permalink

In case there're different folders then yes, it will generate different run configurations (or in case you all the features and then only a certain one). Do you mean that you'd like to have one run configuration for all possible running sessions?

0
Comment actions Permalink

Hi Olga, 

Thanks again for the response. 

I have different run configurations for each of my cucumber feature files and I would like them to be used for every possible place you could run the tests from. I have updated the template but I don't want a mountain of Run configurations for each and every trigger of a test. Cucumber allows individual scenarios to be run within the Feature file but it then creates a new run configuration for each scenario. This is quite messy 

Hope this explains it better sorry

0
Comment actions Permalink

In case you use temporary run configurations then you can set a limit for them: https://www.jetbrains.com/help/ruby/run-debug-configuration.html

0

Please sign in to leave a comment.