Dashboard and API
Running the full sorry-cypress kit - setting up web dashboard to store and browse test results
Last updated
Running the full sorry-cypress kit - setting up web dashboard to store and browse test results
Last updated
The setup of sorry-cypress is already quite useful - we can run cypress tests in parallel without any limitations.
However, we want to store and see the test results and explore errors, screenshots and videos.
We are going to run the full sorry-cypress kit:
director
service will use MongoDB to store the test runs and the results
API
service (a GraphQL interface to MongoDB) to let us issue queries and retrieve tests results
Dashboard
service - a web dashboard for browsing the results
will let us store files - videos and screenshots generated by cypress agent
We are going to run all the services locally using docker-compose
After successfully running docker-compose, we have:
Create a project with the id you wrote as value for projectId
in your currents.config.js
file (e.g., "yyy").
We are using minio
service to store files generated by cypress agents - video recordings and failed test screenshots. Each agent uploads the files directly to minio
.
Edit your /etc/hosts
file to allow cypress agents to discover the local instance of minio
Open several terminal windows within a directory with tests and run cypress
in each.
As soon as agents start their execution, refresh the dashboard. You'd see a new project and a new run created.
The dashboard is quite simple - go ahead and explore the tests you have just created.
Congratulations 🎉
You have set up sorry-cypress on your local machine. Now you can run unlimited cypress tests and use the dashboard to browse the results.
In the next article, we'll learn how to setup sorry-cypress in the cloud using different cloud providers.
director
service on
API
service on
Dashboard
running on
Open the dashboard at
director
is running in a Docker container, but it is still accessible at . We have already reconfigured cypress
to use this URL. Let's just rerun the tests.
Use the same --ci-build-id
value to associate different cypress agents with the same run. Learn more about