Autotests are designed to cover the most common user scenarios. One scenario combines a large number of interactions of different parts.
Downloading and installing Node.js and npm k6
Check
node -v
npm -v
k6 version
Install a repository with tests
git clone https://gitlab/<test_repository>
Installing dependencies
cd test_repository
npm install
Do not forget to change the config file
nano env.json
Depending on which tests you want to run, enter one of:
npm run coingecko
Parse the result in the terminal, or with a reporter
html
mochawesome-report\mochawesome.html
json
mochawesome-report\mochawesome.json
Save local important changes before updating!
git reset --hard HEAD
git pull
npm install
Save .env file before deleting
cd
rm -r betsy-be-tests