Recipe 8 | Test Across Multiple Machines with SSH |
Problem
You’re testing a complex application, and your tests take a while to complete. You’d like to run your tests in parallel across multiple machines to save overall execution time.
Ingredients
-
Cucumber tags[47] for sorting your features into groups that can be run across multiple machines
-
An SSH client[48] for connecting to the remote machines
-
rsync[49] for copying your Cucumber features to each computer
Solution
We strive to make our Cucumber tests run as fast as possible. But let’s say you’ve optimized everything you can, and your tests still take an hour to run. What can you do?
One approach is to run only a subset of the tests, at least while you’re actively developing a specific ...
Get Cucumber Recipes now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.