Setup for the integration tests
This section describes the steps required to properly run the integration tests.
Requirements
- It is necessary to install the program
yarn - Install the dependencies once:
cd integrationTests && yarn install
Configuration
integrationTests/cypress.config.ts [Link to file]
- The base URL must be adapted to the host system.
For this the field
baseUrlhas to be adjusted to the host FQDN (e.g.https://192.168.56.2). Alternatively, pass it on start:yarn cypress run --config baseUrl=https://192.168.56.2 - The environment variable
DoguNamedetermines the name of the current dogu and will be used in routing (swaggerui).
No admin credentials are needed, as the tests access the Dogu anonymously.
Starting the integration tests
The integration tests can be started in two ways:
- With
yarn cypress runthe tests start only in the console without visual feedback. This mode is useful when execution is the main focus, for example in a Jenkins pipeline. yarn openstarts an interactive window where you can run, visually observe and debug the tests. This mode is especially useful when developing new tests and finding bugs.