cypress README

项目的 README,来自 github.com/cypress-io/cypress。合并为一个 markdown 文件:README.md。

Cypress

AI writes the code. Cypress proves it works.

Cypress is a JavaScript and TypeScript testing framework for end-to-end and component testing.
Run your tests in a real browser and rewind any failure.
Works wherever you do: your machine, CI, or your coding agent.

npm version npm downloads GitHub stars Docker pulls

Discord members skills.sh Ask DeepWiki

https://github.com/user-attachments/assets/076e0f06-0529-43de-9ce8-b64209f8e859

What is Cypress?

Cypress is a quality platform for teams shipping modern web applications. It tests anything that runs in a browser, on your machine and in CI.

Installing

Install Cypress for Mac, Linux, or Windows with your package manager of choice, then get started.

npm install cypress --save-dev   # npm
yarn add cypress --dev           # Yarn
pnpm add cypress --save-dev      # pnpm
bun add cypress --dev            # Bun

Quick start

Open Cypress from your project root:

npx cypress open

Coding with an AI agent? Leave Cypress open and let the agent drive it from another terminal with cypress tap. It can run a spec, check its status, and read the failing test's Command Log, error, and DOM, so it can fix its own failures as it codes.

Add Cypress to your coding agent

Give your coding agent the official Cypress skills so it writes, runs, and debugs tests the Cypress way.

npx skills add cypress-io/ai-toolkit

Then connect it to Cypress Cloud with Cloud MCP, so it can check run status, find flaky tests, and pull failure details, including Test Replay links.

Community plugins

Extend Cypress with plugins built by the community and the Cypress team, covering everything from visual testing and accessibility to authentication and reporting. Browse the full list in the plugins directory.

Community & resources

Contributing

cypress CircleCI

Please see our Contributing Guideline which explains repo organization, linting, testing, and other steps.

License

MIT license

This project is licensed under the terms of the MIT license.

Badges

Configure a badge for your project's README to show your test status in the Cypress Cloud.

cypress

Or let the world know your project is using Cypress with the badge below.

Cypress.io

[![Cypress.io](https://img.shields.io/badge/tested%20with-Cypress-00814D?style=for-the-badge&labelColor=1B1E2E&logo=cypress)](https://www.cypress.io/?utm_source=github&utm_medium=badge&utm_campaign=tested-with-cypress&utm_content=tested-with-badge)

cypress (cypress-io/cypress)

正在搜索数据库…

这是什么?Cypress 是一个 JavaScript/TypeScript 测试框架,适用于任何在浏览器中运行的内容,旨在让端到端测试和组件测试快速、简单且可靠。
它是独立的测试框架,还是只是 Selenium 之类的封装?它是一个自包含的测试框架,自带测试运行器和图形界面,而不是一个轻量的封装库;Cypress 会直接在浏览器中与你的应用一起执行测试代码。
我该如何安装和运行它?安装适用于 Mac、Linux 或 Windows 的版本,然后从那里开始;在 JS/TS 项目中,常见做法是将其添加为 npm 开发依赖,并打开测试运行器。
构建或运行它需要 Node.js 吗?需要。该仓库使用 TypeScript 编写,构建和运行时要求 Node.js >=24.15.0 和 Yarn >=1.22.22。
Cypress 能在哪些操作系统上运行?它可以在 Mac、Linux 和 Windows 上运行。
什么是 Cypress Cloud?Cypress Cloud 是一项配套服务,可以记录你的测试运行情况,方便你查看结果,还能为项目获取测试状态徽章,并使用 Test Replay 等功能。
它支持哪些组件测试框架?它提供适用于 Angular、React、Svelte 和 Vue 的测试库,让你可以挂载并测试单个组件,而不仅限于完整页面。
什么是 Test Replay?Test Replay 是 Cypress Cloud 的一项功能,可以像实时发生一样逐步回放已记录的测试运行过程,便于调试 CI 中的失败,无需在本地重新运行整个测试套件。
有哪些类似的项目?e2e, playwright, SeleniumBase, ava, nx, expect, todomvc, appium
大小
588.8 MB
星标
51K
时长
11年
提交 · 90 天