This directory contains integration tests for Traffic Portal.
To build and run the tests, one can use the npm
(or pnpm
) scripts.
npm install
(or pnpm install
)npm run start-webdriver
(or pnpm run start-webdriver
)npm test
(or pnpm test
)The tests can accept a few command line parameters - which can be separated from the npm
flags with --
.
Flag | Description |
---|---|
params.baseUrl | Environment test run on. Tests are written for cdn-in-a-box only. Do not run on other environment |
capabilities.shardTestFiles | Input true or false to turn on or off parallelization. If the value is false, maxInstances will always count as 1. The default value in the config file = false |
capabilities.maxInstances | Input number of Chromium instances that your machine can handle. Test will fail if local machine cannot handle a lot of Chromium instances. The default value = 1 |
npm test -- --params.baseUrl https://localhost --capabilities.shardTestFiles true