|
|
|
|
67
|
|
67
|
|
68
|
## Installation of cypress: Automated script for easy setup ##
|
68
|
## Installation of cypress: Automated script for easy setup ##
|
69
|
|
69
|
|
70
|
-This script check if nodejs is installed (npm is necessary to install Cypress), if file package.json and cypress.json exist in 'functionnal_tests' folder. if not the script install necessary file and install Cypress.
|
|
|
|
|
70
|
+This script check if nodejs is installed (npm is necessary to install Cypress), if file package.json and cypress.json exist in 'functionnal_tests' folder. if not the script install necessary file and install Cypress and his dependency's.
|
71
|
|
71
|
|
72
|
./install_cypress.sh
|
72
|
./install_cypress.sh
|
73
|
|
73
|
|
74
|
## Run tests with command line ##
|
74
|
## Run tests with command line ##
|
75
|
|
75
|
|
|
|
76
|
+This command run all test present in 'cypress_test' folder.
|
|
|
77
|
+
|
76
|
cd functionnal_tests/
|
78
|
cd functionnal_tests/
|
77
|
./node_modules/.bin/cypress run
|
79
|
./node_modules/.bin/cypress run
|
78
|
|
80
|
|
79
|
## Run tests with cypressgui ##
|
81
|
## Run tests with cypressgui ##
|
80
|
|
82
|
|
81
|
-Open Cypress with graphical interface
|
|
|
|
|
83
|
+Open Cypress with graphical interface. You can show test running directly in web interface.
|
82
|
|
84
|
|
83
|
cd functionnal_tests/
|
85
|
cd functionnal_tests/
|
84
|
./node_modules/.bin/cypress open
|
86
|
./node_modules/.bin/cypress open
|