Skip to content

Latest commit

 

History

History

cypress

End-to-End Testing

Setup with docker

Are you running everything through docker? You're so lucky you don't have to setup anything!

Just:

$ docker-compose up

Setup without docker

To start the services that are required for cypress testing manually. You basically need the whole setup to run:

  • backend
  • webapp
  • neo4j

Navigate to the corresponding folders and start the services.

Install cypress

Even if the required services for testing run via docker, depending on your setup, the cypress tests themselves run on your host machine. So with our without docker, you would have to install cypress and its dependencies first:

# in the root folder /
$ yarn install

Open Interactive Test Console

The interactive cypress test console allows to run tests and have visual feedback on that. The interactive cypress environment also helps at debugging the tests, you can even time travel between individual steps and see the exact state of the app.

To use this feature run:

$ yarn cypress:open

Interactive Cypress Environment

Run cypress

To run cypress without the user interface:

$ yarn cypress:run

This is used to run cypress in CI or in console

Console output after running cypress test

Write some Tests

Check out the Cypress documentation for further information on how to write tests: Write-a-simple-test