Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To run the Cypress tests locally, you have two options. You should first ensure that DCB Admin is running. This Next.js documentation article explains how to get started.

  • npx cypress open will open the Cypress application, assuming you have it installed on your machine. This will allow you to choose which tests you would like to run through the Cypress GUI.

  • You can also use

    Code Block
    npx cypress run --spec "cypress/e2e/example-test.cy.ts"

    to specify either an individual test, or a set of tests contained within a certain directory.

    • Note that this will run headlessly (in the command line) by default. To force it to run through the GUI, you must add the --headed flag to your command.

    • To run all tests within a certain directory, use the following:

      • Code Block
        npx cypress run --spec "cypress/e2e"

...