cypress_run
Run Cypress tests with custom configuration. Specify browser, headless mode, base URL, environment variables, and more to get test results including pass/fail counts and run ID.
Instructions
Run Cypress tests with specified options. Returns test results including pass/fail counts, duration, and run ID.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cypress_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | No | Specific test file or glob pattern to run (e.g., "cypress/e2e/login.cy.js") | |
| browser | No | Browser to run tests in | |
| headless | No | Run in headless mode (default: true) | |
| baseUrl | No | Base URL for the application under test | |
| env | No | Environment variables to pass to Cypress | |
| config | No | Additional Cypress configuration options |