简体   繁体   English

RubyMine,仅运行测试标签

[英]RubyMine, run tests tags only

example: several scenarios with different tags like @slow, @fast, @regression. 例如:几种使用不同标签的场景,例如@ slow,@ fast,@ regression。

Is there a way to run @regression scripts only via RubyMine like via command line? 有没有办法像命令行一样仅通过RubyMine运行@regression脚本?

If you open the 'run' menu, then open 'edit configurations', you can set some default settings for cucumber (in the left hand column/tree view). 如果打开“运行”菜单,然后打开“编辑配置”,则可以为黄瓜设置一些默认设置(在左侧列/树视图中)。

In the runner options setting, you can put '--tags @slow' etc 在“跑步者选项”设置中,您可以放置​​“ --tags @slow”等

You can use as many Run/Debug Configurations as you want. 您可以根据需要使用任意数量的“运行/调试配置”。

  1. Select Edit Configurations in the top menu: 在顶部菜单中选择“编辑配置”:

在此处输入图片说明

  1. Create Cucumber configuration you want: 创建所需的黄瓜配置:

在此处输入图片说明

  1. PROFIT! 利润!

Now you can use any of created Run/Debug configuration with specified tags 现在,您可以将任何已创建的运行/调试配置与指定标签一起使用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM