Cypress Runner | Bondar Academy
Course: Cypress UI Testing with JavaScript
Module: Cypress Hands-On Overview
Instructor: Artem Bondar
Lesson Summary
In this lesson, we explore the Cypress runner and how to execute Cypress tests on your computer. Here are the key points discussed: Cypress Runner Interface Specs Tab: Refers to test files, short for "specification," following JavaScript naming conventions. Runs and Debug: A feature of Cypress Cloud that allows for parallel execution, run history, and debugging. Test Files: The list of test files in the runner matches those in the Cypress/E2E folder of your project. Running Tests To run a test, simply click its name in the Cypress runner. The runner operates in a real browser window, allowing you to interact with your application while tests execute. Test Execution Details Each line in the runner represents a single test from the spec file. The runner displays the number of tests passed, failed, and skipped. Hovering over executed steps shows a replay of actions taken during the test. Locator Picker Tool This tool helps identify locators by hovering over elements on the page. You can generate locators or type your own to find matches. Running Single Tests To run a single test, add it.only before the test. To skip a test, use it.skip . This functionality also applies to context blocks. The Cypress runner's time travel feature allows you to review test execution in detail, making debugging and development more efficient. This tool will be essential as we continue automating tests in future lessons.