E2E test suite for the FAIR Data Point, FAIR Data Point Client and Open Refine Metadata Extension 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.
/scripts
- Additional utility scripts.
/cypress.json
- Contains the default configuration and env.
- You can overwrite env values with a
cypress.env.json
file.
When initializing the docker-compose.yml
file, the following ENV variables can be used to choose different images to test.
ENV | Default |
---|---|
SERVER_IMAGE | fairdata/fairdatapoint:develop |
CLIENT_IMAGE | fairdata/fairdatapoint-client:develop |
OPEN_REFINE_IMAGE | fairdata/openrefine-metadata-extension:develop |
Makefile contains several commands to work with the project.
make install
- install all the dependencies to run the testsmake init
- initialize docker-compose so that the project can runmake 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
This project is licensed under the MIT License - see the LICENSE file for more details.