Search⌘ K
AI Features

Cypress Utilities, APIs, and Troubleshooting

Explore how to run and debug tests using Cypress command-line tools and the interactive test runner. Understand browser console logging methods for debugging JavaScript in Rails. Discover React DevTools for inspecting components and troubleshooting React-based interfaces in your Rails applications.

Cypress also has a command-line tool that allows you 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 runtime by default.

If you run this command, you’ll get output directly In your terminal. You’ll get a ...