Versions Compared

Key

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

...

  • 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"

For more information on running Cypress through the command line, please refer to the documentation.

Running coverage reports

Examples

...