简体   繁体   English

如何使用parallel_tests运行标记的rspec测试?

[英]How to run tagged rspec tests with parallel_tests?

I want to execute my rspec tests in parallel 我想并行执行我的rspec测试

If I need all tests to perform on 6 cores I use bundle exec rake parallel:spec[6] 如果我需要在6个内核上执行所有测试,我使用bundle exec rake parallel:spec[6]

How can I specify a tag option for spec rake, eg --tag ~chat 如何为spec rake指定标签选项,例如--tag ~chat

Use SPEC_OPTS environment variable for passing options to rspec in this case. 在这种情况下,使用SPEC_OPTS环境变量将选项传递给rspec。

Example: 例:

$ SPEC_OPTS='--tag ~chat' bundle exec rake parallel:spec[6]

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

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