Skip to main content

Running tests

Opening runner

tip

To modify the url, change the e2e.baseUrl parameter in the uuv/cypress.config.ts file in order to fill the target url.

From powershell or cmd terminal :

npx uuv open

Running E2E tests from console

Use for continuous integration(CI example) or headless execution.

From powershell or cmd terminal :

npx uuv e2e

With arguments

npx uuv e2e --browser=edge --env="{'TAGS':'@mobile'}" --generateHtmlReport --targetTestFile=./uuv/e2e/first-test.feature

Arguments

tip

To modify the BASE_URL in E2E mode, simply set the environment variable :

set UUV_BASE_URL=http://localhost:4200
NomDescriptionValeur
browserTarget browserchrome / edge / firefox / electron
envEnvironment variablesJson object containing the properties:
- TAGS : To target the cucumber tags
- ... : All possible properties for cypress
generateHtmlReportWhen this option is present, an html report of the executed tests will be generated here : ./uuv/reports/e2e/html/
An example of a report
N/A
generateJunitReportWhen this option is present, an junit report of the executed tests will be generated here : ./uuv/reports/e2e/junit-report.xmlN/A
generateA11yReportWhen this option is present, a json report for a11y checks performed : ./uuv/reports/a11y-report.jsonN/A
targetTestFileSpecify test files to executeIf not present: all test files will be included
If set: contains a specPattern path relative to the ProjetDir parameter