cypress-test-generator
Generate Cypress E2E test files and configuration for web application testing. Triggers on "create cypress test", "generate cypress config", "e2e test for", "cypress setup".
When & Why to Use This Skill
The Cypress Test Generator skill automates the setup and creation of End-to-End (E2E) testing suites for web applications. By generating standardized Cypress 13.x configuration files and TypeScript test scripts, it significantly reduces the manual effort required for quality assurance, helping developers maintain high code reliability and accelerate the testing lifecycle.
Use Cases
- Initial Project Setup: Quickly bootstrapping a new web application with a complete Cypress E2E testing framework, including cypress.config.ts and folder structures.
- Automated User Flow Testing: Generating specific test cases for critical paths such as user login, registration, and checkout processes to ensure functional integrity.
- CI/CD Pipeline Integration: Providing valid, standardized configuration files that can be immediately integrated into automated deployment workflows for continuous testing.
- Regression Testing: Rapidly creating a suite of tests to verify that new code changes do not break existing web application features.
| name | cypress-test-generator |
|---|---|
| description | Generate Cypress E2E test files and configuration for web application testing. Triggers on "create cypress test", "generate cypress config", "e2e test for", "cypress setup". |
Cypress Test Generator
Generate Cypress E2E test files and configuration for comprehensive web application testing.
Output Requirements
File Output: cypress.config.ts, cypress/e2e/*.cy.ts
Format: Valid Cypress configuration and test files
Standards: Cypress 13.x
When Invoked
Immediately generate Cypress configuration and sample test files for the specified application.
Configuration Template
import { defineConfig } from 'cypress';
export default defineConfig({
e2e: {
baseUrl: 'http://localhost:3000',
supportFile: 'cypress/support/e2e.ts',
},
});
Example Invocations
Prompt: "Create cypress config and login test"
Output: Complete cypress.config.ts and cypress/e2e/login.cy.ts.