I’m trying to get parallel_tests working with my cucumber features as it allows me to run my tests much faster.
https://github.com/grosser/parallel_tests/wiki
Problem is that when I run my features this way I get a heap of undefined steps. I’ve seen this problem mentioned as a closed issue here:
https://github.com/grosser/parallel_tests/issues/22
With phuong-nguyen he suggests adding features/step_definitions features/support to my bundle exec command. I’ve tried this every which way, how do I include these two directories in my bundle exec command?
Here is what I’ve tried so far:
$ bundle exec rake --require features/step_definitions --require features/support parallel:features
$ bundle exec features/step_definitions features/support rake parallel:features
$ bundle exec rake parallel:features features/step_definitions features/support
Update:
After updating parallel_tests to 0.6.1 the following command still has the same issue:
$ bundle exec rake parallel:features features/step_definitions features/support
Some features pass whilst others still cannot find the steps
I found that if I add ‘-r features’ to my cucumber.yml std_opts line then I can now run all my cucumber tests parallel again.
Here is my full cucumber.yml file: