Running behat tests in parallel (in two browser windows)

↘锁芯ラ 提交于 2019-12-02 02:28:06

I setup parallel test execution with GNU Parallel and xargs. Also implement consolidated report for all executed features. Details in my article here:
http://parallelandvisualtestingwithbehat.blogspot.com/p/blog-page.html

nono
find ./features -name "*.feature" |
  parallel --gnu --halt-on-error=0 -j 3 --keep-order vendor/bin/behat -c src/my_directory/behat.yml

--halt-on-error possibilities are :

  • 0 Do not halt if a job fails. Exit status will be the number of jobs failed. This is the default.

  • 1 Do not start new jobs if a job fails, but complete the running jobs including cleanup. The exit status will be the exit status from the last failing job.

  • 2 Kill off all jobs immediately and exit without cleanup. The exit status will be the exit status from the failing job.

-j 3 : Run 3 jobs in parallel

It work perfectly with selenium.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!