Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何提高watir&x2B;ruby+;通过詹金斯的rspec?_Ruby_Jenkins_Webdriver_Watir Webdriver_Saucelabs - Fatal编程技术网

如何提高watir&x2B;ruby+;通过詹金斯的rspec?

如何提高watir&x2B;ruby+;通过詹金斯的rspec?,ruby,jenkins,webdriver,watir-webdriver,saucelabs,Ruby,Jenkins,Webdriver,Watir Webdriver,Saucelabs,当我通过Jenkins CI使用watir+ruby+rspec在酱油实验室运行测试时,我遇到了一个问题。整个测试套件的执行速度非常慢。如何提高执行速度?为了提高测试套件的执行速度,我建议使用“并行测试”gem。只需在gem文件中添加行gem“parallel_tests”,然后在命令提示符下运行: bundle update #to setup new gem bundle exec parallel_rspec /spec #to run

当我通过Jenkins CI使用watir+ruby+rspec在酱油实验室运行测试时,我遇到了一个问题。整个测试套件的执行速度非常慢。如何提高执行速度?

为了提高测试套件的执行速度,我建议使用“并行测试”gem。只需在gem文件中添加行
gem“parallel_tests”
,然后在命令提示符下运行:

bundle update                        #to setup new gem
bundle exec parallel_rspec /spec     #to run your tests in parallel 

这是我的工作。也谢谢。

定义“非常慢”。单个测试运行缓慢还是整个套件需要很长时间才能执行?您正在并行运行测试吗?整个套件运行速度非常慢。我听说过parallel,但我不确定我是否理解如何实现它。