React 页面测试与覆盖检查
原名:senior-qa
为 React 或 Next.js 组件整理测试桩、路由用例和覆盖缺口。
中文 Skills 技能说明
React 或 Next.js 页面改完,别只看能不能打开。提供组件、路由、接口约定、用户行为和现有测试环境,技能用 Python 工具辅助生成测试桩、分析覆盖报告及整理端到端用例,交付待运行的测试文件与缺口表。Jest、Testing Library、Playwright 等需按项目配置;不为使用技能替换现有 Vue 测试体系。生成不等于执行,覆盖率不等于没有缺陷;脱敏测试数据,权限与错误路径需复核,合并发布由负责人确认。
上游能力依据
上游原始适用说明:Generates unit tests, integration tests, and E2E tests for React/Next.js applications. Scans components to create Jest + React Testing Library test stubs, analyzes Istanbul/LCOV coverage reports to surface gaps, scaffolds Playwright test files from Next.js routes, mocks API calls with MSW, creates test fixtures, and configures test runners. Use when the user asks to "generate tests", "write unit tests", "analyze test coverage", "scaffold E2E tests", "set up Playwright", "configure Jest", "implement testing patterns", or "improve test quality".
上游 SKILL.md 主要章节(保留原文标题):
- Quick Start
- Tools Overview
- 1. Test Suite Generator
- 2. Coverage Analyzer
- 3. E2E Test Scaffolder
- QA Workflows
- Unit Test Generation Workflow
- Coverage Analysis Workflow
- E2E Test Setup Workflow
- Reference Documentation
使用边界
先复现问题并固定测试范围,再生成或执行测试。测试通过只能证明已覆盖的场景,不能代替生产环境验收。
作者、翻译与许可证
- 原作者
- Alireza Rezvani 与 claude-skills contributors
- 中文翻译
- CEOFans翻译
- 许可证
- MIT
- 上游来源
- https://github.com/alirezarezvani/claude-skills/tree/27cfcd0fb0a41f60adffcbd5271fdf8839f86ed2/engineering-team/skills/senior-qa
适用范围
平台:linux、macos、windows;标签:测试与质量、React 页面测试与覆盖检查、开源技能
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。