E2E test suite for the FAIR Data Point, FAIR Data Point Client, based on Cypress.
/cypress
- Contains all test files following the standard Cypress structure.
/fdp
- Contains the configuration to run FDP and other associated services in Docker.
- The actual Docker
compose.yml
file is generated during initialization.
/cypress.json
- Contains the default configuration and env.
- You can overwrite env values with a
cypress.env.json
file.
When initializing the compose.yml
file, the following ENV variables can be used to choose different images to test.
Name | Example | Default |
---|---|---|
SERVER_VERSION | 1.16 |
develop |
CLIENT_VERSION | 1.16 |
develop |
Makefile contains several commands to work with the project.
make install
- install all the dependencies to run the testsmake start
- start all containersmake stop
- stop all containersmake run
- run tests in headless modemake open
- open Cypress app, good for local developmentmake ci
- shortcut for the whole workflow in CImake clean
- clean all generated files
For convenience, it is also possible to run the tests through npm run test
.
To add cypress cli options, use --
, e.g. npm run test -- <cypress options>
.
This project is licensed under the MIT License - see the LICENSE file for more details.