When different test automation frameworks are used within the same organization, compatibility issues can create costly roadblocks and process gaps that may result in a lack of observability for the entire organization. For example, flaky tests and a lack of integration capabilities with other tools can make it difficult to troubleshoot issues in a timely and effective manner.
Sauce Labs offers functionality that can help mitigate the risk of compatibility issues and ensure your tests run quickly and smoothly, regardless of which test automation tools your team uses. Below are some best practices for using Cypress on Sauce Labs.
How to Use Cypress on Sauce Labs
The saucectl CLI helps to mitigate some of the issues that can occur when software teams use multiple test frameworks. saucectl orchestrates the relationship between your Cypress tests and the rich parallelization, test history filtering, and analytics of the Sauce Labs Continuous Testing Cloud. saucectl performs the underlying business logic to access the tests in Cypress, runs them (either in the Sauce Labs Cloud or locally in a Docker image), then securely transmits the test assets to the Sauce Labs platform, where you can review, share, and evaluate your test outcomes at scale. Learn more about how to configure .
saucectl helps software teams incorporate their Cypress tests earlier in the SDLC to speed up delivery and increase product quality. By covering Cypress in this way, Sauce Labs makes automated testing more accessible and easier for different teams to deliver releases with more confidence in less time. Watch our Cypress on Sauce Labs setup video to get started.
Best Practices for Configuring Cypress Tests on Sauce Labs
While most Sauce Labs features can be accessed easily by entering your own code, it can help to make sure you’re using everything efficiently. Here are some key features to know when configuring your Cypress tests on Sauce Labs:
Concurrency: Sauce Labs supports testing in concurrency, which helps increase scalability, collaboration, and consolidation of your tests.
Sauce Ignore: This function allows you to specify certain test files to exclude from your Cypress tests. For example, you can exclude large and/or unnecessary files to increase the speed and efficiency of your test runs.
Test Sharding: Sauce Labs includes an automatic test sharding feature for Cypress tests to increase the speed of your testing process. When sharding is configured, saucectl automatically splits the tests (e.g., by spec or concurrency) so that they can easily run in parallel. For sharding by concurrency, saucectl splits test files into several groups (the number of groups is determined by the concurrency setting). Each group will then run as an individual job.
For more information, check out our video on how to run tests with Cypress and saucectl.
Achieve Quality at Speed with Cypress on Sauce Labs
Cypress on Sauce Labs gives software development teams easy access to quality feedback at scale while increasing the speed and reliability of your tests.
Ready to get started? Sign up for a Sauce Labs free trial and start testing in minutes.