Human Connection
docs-add_missing_env_instruction
docs-add_missing_env_instruction
  • Introduction
  • Edit this Documentation
  • Installation
  • Backend
    • graphql-with-apollo
      • GraphQL with Apollo
        • Mocking
        • Seeding
    • Import
    • Middleware
  • Webapp
    • COMPONENTS
    • PLUGINS
    • STORE
    • PAGES
    • ASSETS
    • LAYOUTS
    • Styleguide
    • STATIC
    • MIDDLEWARE
  • Testing Guide
    • End-to-end tests
    • Frontend tests
    • Backend tests
  • Contributing
  • Deployment
  • Feature Specification
  • Code of conduct
  • License
Powered by GitBook
On this page
  • Run Tests
  • Open Interactive Test Console
  • Write some Tests

Was this helpful?

  1. Testing Guide

End-to-end tests

PreviousTesting GuideNextFrontend tests

Last updated 6 years ago

Was this helpful?

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:

$ yarn cypress:setup

After verifying that there are no errors with the servers starting, open another tab in your terminal and run the following command:

$ yarn cypress:run

After the test runs, you will also get some video footage of the test run which you can then analyse in more detail.

Open Interactive Test Console

If you are like me, you might want to see some visual output. The interactive cypress environment also helps at debugging your tests, you can even time travel between individual steps and see the exact state of the app.

To use this feature, you will still run the yarn cypress:setup above, but instead of yarn cypress:run open another tab in your terminal and run the following command:

$ yarn cypress:open

Write some Tests

Check out the Cypress documentation for further information on how to write tests:

https://docs.cypress.io/guides/getting-started/writing-your-first-test.html#Write-a-simple-test
Console output after running cypress test
Interactive Cypress Environment