With the exception of Visual Studio Code, these prerequisites should be installed on Linux (NOT Windows)
- Visual Studio Code (https://code.visualstudio.com/)
- NVM (Node Version Manager) (https://github.com/nvm-sh/nvm)
- Node.js - run
nvm install --lts
from Linux terminal - Google Chrome - run
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
from Linux terminal, and thensudo apt -y install ./google-chrome-stable_current_amd64.deb
to install
- Clone this Git repository to your local directory (within Linux)
- Open up this local instance of the project in Visual Studio Code
- Install the recommended extensions from Visual Studio Code Extensions.
- Open Terminal within Visual Studio Code and install Yarn by running
npm install --global yarn
from the terminal - Open Terminal within Visual Studio Code and install the dependencies by running
npm install
from the terminal - Open Terminal within Visual Studio Code and install the dependencies by running
sudo apt-get install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb
from the terminal
The file 'package.json' contains the commands to run scripts, and these are all declared in 'scripts' object. The tests are executed in a Chrome browser with the tag filter not @ignore
.
In this mode, Cypress opens the interactive Test Runner, allowing you to manually run and observe tests in the browser.
npm run cypress:local
- Opens the Test Runner for the Local environment.npm run cypress:dev
- Opens the Test Runner for the Dev Environment.npm run cypress:test
- Opens the Test Runner for the Test Environment.
In this mode, Cypress runs tests all tests at once and generates a HTML report after.
npm run cypress:local:all
Runs all tests for the Local environment.npm run cypress:dev:all
Runs all tests for the Dev environment.npm run cypress:test:all
Runs all tests for the Test environment.
*Last updated: 9th September 2024*