This script will install all the dependencies for the project.
The root directory add local-config.ts file, and update to your username and password. for example: { "userName": "userName", "userPassword": "userPassword" }
Runing all UI Automated Tests.
To see the test report
To see the coverage report
- It uses ubuntu, which is a popular choice when using docker.
- It installs google chrome, which is a dependency that the selenium webdriver needs.
- It installs nodejs, which includes the runtime that the tests needs.
- Its working directory is
/usr/src/app
. - Copy the
package.json
file from the host to the container and runnpm install
. - Copy the code from this repository to the working directory of the container.
- Run
npm run test:report
to generate thedaily-report
folder. - Execute
node sendMail
to send thedaily-test-results.html
file to a list of email addresses.
docker cp <container id>:/usr/src/app/daily-report .