Comment on page
Sorry-cypress full setup with persistency and web dashboard
The full sorry-cypress setup allows to use all the supported featured but comes with an overhead of maintaining the infrastructure required to run the services:
- sorry-cypress-director in "persisting" mode
- Test Recordings storage
Director service is responsible for
- parallelization and coordination of test runs
- integration with Slack, GitHub, MS Teams and emitting generic WebHooks
- saving tests results
- generating signed upload URL for saving failed tests screenshots
When you launch Cypress agents on a CI environment with multiple machines, each agent contacts the director service and gets instructions on the next spec file to run.
After running the test spec, the agent reports the results to the Director service, receives the instructions for the next run, and so on until all the tests are done.
The director service coordinates those activities for multiple agents and different runs, stores the test results in a database.
Full setup requires the director to run in "persisting" mode to use MongoDB driver and provide credentials.,
API Service is a simple GraphQL wrapper that exposes a convenient way to query the data stored by Director.
The service is only required as an interface for the Web Dashboard, but can be used to query the database and describe the internal data models.
The dashboard allows end-users to interact with sorry-cypress using a browser and to:
- track test runs progress
- browser test results, videos, and failures screenshots
- set projects configuration like WebHooks, Slack, MS Teams and GitHub integration
- create and delete entries (projects, runs)
We need remote storage to store the generated screenshots and videos. Director service will send a signed upload URL that cypress agent will use to upload the generated artifacts.
A signed URL is a URL that provides limited permission and time to make a request. Signed URLs contain authentication information in their query string, allowing users without credentials to perform specific actions on a resource.
Sorry-cypress integrates with the major remote cloud storage solutions:
To disable remote storage, we need to set a "dummy" screenshots driver for Director service.
Refer to specific cloud platform instructions for remote cloud storage configuration guidelines.
Director and API services work with MongoDB as a persistency layer. It's up to you to choose MongoDB solution that works for your needs.