Cypress Starter Kit is a comprehensive boilerplate repository designed to help developers quickly set up an automated testing environment using Cypress and cypress-axe. It includes accessibility testing support, sensible defaults, and useful scripts to streamline testing workflows.
- Pre-configured Cypress environment with TypeScript
- Accessibility testing with
cypress-axe
- Ready-to-use scripts for CI workflows
- ESLint + TypeScript support
-
Clone the repository:
git clone https://github.com/your-username/CypressStarterKit.git cd cypress-starter-kit
-
Install dependencies:
npm install
-
Open Cypress UI:
npm run cypress:open
The repository includes several npm scripts for different testing scenarios:
npm run cypress:open
: Launch Cypress in interactive modenpm run cypress:run
: Run all Cypress tests headlesslynpm run test
: Alias forcypress run
npm run test:ally
: Run accessibility tests onlynpm run lint
: Run ESLint on.ts
and.js
filesnpm run type-check
: Run TypeScript type checksnpm run clean:screenshots
: Delete all screenshots incypress/screenshots/
For Cypress Cloud setup and advanced features, see CYPRESS_CLOUD_SETUP.md.
On every push or pull request to main
, Cypress accessibility tests are run automatically via GitHub Actions.
- All screenshots generated during the run are saved as a downloadable artifact named
cypress-screenshots
.
You can view the status badge at the top of this README and download artifacts from the Actions tab on GitHub.
Contributions are welcome!
This project is licensed under the MIT License.