Add cypress env configuration to docs

This commit is contained in:
Robert Schäfer 2019-04-17 20:59:54 +02:00
parent 91e11eb14d
commit a127239988

View File

@ -1,10 +1,23 @@
# End-to-End Testing # End-to-End Testing
## Configure cypress
First, you have to tell cypress how to connect to your local neo4j database
among other things. You can copy our template configuration and change the new
file according to your needs.
Make sure you are at the root level of the project. Then:
```bash
# in the top level folder Human-Connection/
$ cp cypress.env.template.json cypress.env.json
```
## Run Tests ## Run Tests
To run the tests, make sure you are at the root level of the project, in your console and run the following command: To run the tests, do this:
```bash ```bash
# in the top level folder Human-Connection/
$ yarn cypress:setup $ yarn cypress:setup
``` ```