Sorry Cypress is an open-source tool that provides a scalable and reliable approach for running end-to-end Cypress tests for modern web applications. In this tutorial, we will guide you through the steps to install and set up Sorry Cypress on Debian Latest.
Before we begin, make sure your Debian Latest machine is up-to-date by running the following commands:
sudo apt-get update
sudo apt-get upgrade
Run the following commands to install Node.js and npm:
sudo apt-get install nodejs
sudo apt-get install npm
After installation, verify the versions of Node.js and npm:
node -v
npm -v
To install Sorry Cypress, run the following command:
npm install -g sorry-cypress
Before running tests with Sorry Cypress, you need to set up your Cypress project to integrate with it. Navigate to your Cypress project directory and run the following command:
npx sorry-cypress init
This will generate the configuration files necessary for Sorry Cypress. Open the cypress.json
file and add the following configuration:
{
"baseUrl": "http://localhost:3000",
"video": true,
"trashAssetsBeforeRuns": true
}
This configuration sets the base URL for your tests, enables video recording and trash assets before every test run.
To run your Cypress tests with Sorry Cypress, use the following command:
npx cypress run --record --key <your_secret_key>
Replace <your_secret_key>
with your Sorry Cypress secret key. This will initiate a test run on the Sorry Cypress dashboard.
After the test run has completed, you can view the test results on the Sorry Cypress dashboard. Open the following URL in your browser:
https://app.sorry-cypress.dev/
Log in with your GitHub account and navigate to the Runs
tab. Here, you will see the results of your latest test run.
In this tutorial, we have shown you how to install and set up Sorry Cypress on Debian Latest. Sorry Cypress is a powerful and scalable tool that can help streamline your end-to-end testing process.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!