AI Features

Cypress Utilities, APIs, and Troubleshooting

Apply Cypress testing to the rest of our Stimulus and React pages in this lesson.

TroubleShooting from the terminal

Cypress also has a command-line tool that allows us to run Cypress from a terminal or from a command line in a continuous integration tool. In our environment, we start that tool with rake cypress:run. Doing so will run the tests against the Electron JS run time by default.

When we run this command, we’ll get output directly in our terminal. We’ll get a line for each individual test with a time amount, for ...