testing
Skill48 starsChanged 10 months agoMITView on GitHub
Testing strategies and methodologies including TDD and E2E testing. Use when writing tests, implementing TDD workflow, or setting up E2E test infrastructure.
123 other projects use a version of this.
Adopted by
Most recently taken up by
- timmo001/skillstheir own version, first seen Oct 5, 2026
- kortix-ai/sunatheir own version, first seen Oct 5, 2026
- gilsmt/skillstheir own version, first seen Oct 4, 2026
- andeeplus/aplustheir own version, first seen Oct 4, 2026
- JetBrains/intellij-communitytheir own version, first seen Oct 3, 2026
- shinpr/codex-workflowstheir own version, first seen Oct 2, 2026
Used with
Projects with it also use oss-pr, pr-automation and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
CES-LtdSkilloss-pr
Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.
Also in 3 projects that use this
CES-LtdSkillpr-automation
PR Automation Orchestrator: poll open PRs, check CI, run review, fix, and merge eligible PRs. Use when: (1) Invoked by daemon via scripts/pr-automation.sh, (2) User says "/pr-automation".
Also in 3 projects that use this
ffsshhttiikkSkillcicd
Continuous integration and delivery pipelines
Also in 4 projects that use this
ffsshhttiikkSkillnetworking
Practical application and coding skills for Networking
Also in 3 projects that use this
JohnJBorenSkillci-cd
CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies
Also in 9 projects that use this
Cogni-AI-OUSkilldotfiles
Reference for repository dotfiles, including their purposes, standard configurations, and usage guidelines. You MUST load this skill when configuring, troubleshooting, or understanding repository dotfiles.
Also in 3 projects that use this
- +2 more from CES-Ltd
- +1 more from ffsshhttiikk
Other versions123 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 123
- lobehub/lobehub★ 83ksame name
- iOfficeAI/AionUi★ 33ksame name
- JetBrains/intellij-community★ 21ksame name
- kortix-ai/suna★ 20ksame name
- modelcontextprotocol/inspector★ 11ksame name
- microsoft/fast★ 9.7ksame name
- bytebase/dbhub★ 3.6ksame name
- theopenco/llmgateway★ 1.7ksame name
- BankrBot/skills★ 1.2ksame name
- microsoft/CCF★ 875same name
113 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
- llms.txtllms.txt
- apiSkill
- architectureSkill
- backendSkill
- compactSkill
- databaseSkill
- debugSkill
- devopsSkill
- explorationSkill
- frontendSkill
- gitSkill
- learningSkill
- modelSkill
- nativeSkill
- qualitySkill
- search-firstSkill
- second-opinionSkill
- securitySkill
- sessionSkill
The file
Files
测试策略
关联 Agent:
tdd-guide(测试驱动开发)、code-reviewer(可测试性评估)、build-error-resolver(修复后测试验证)
本技能提供测试策略选择指南,整合 TDD(测试驱动开发)和 E2E(端到端测试)最佳实践。
子文件
- tdd.md - 测试驱动开发工作流
- e2e.md - Playwright E2E 测试指南
- tdd-example.md - 完整 TDD 会话示例
- frameworks.md - 测试框架配置与 Mock 模式
- qa-methodology.md - QA 角色方法论与验证流程
测试金字塔
┌─────────┐
│ E2E │ 少量:验证核心流程
├─────────┤
│集成测试 │ 中等:验证组件交互
├─────────┤
│单元测试 │ 大量:验证独立单元
└─────────┘测试策略选择
| 场景 | 推荐策略 | 参阅文件 |
| 新功能开发 | TDD(测试先行) | tdd.md |
| Bug 修复 | 先写失败测试,再修复 | tdd.md |
| 核心用户流程验证 | E2E 测试 | e2e.md |
| 重构现有代码 | 先补测试,再重构 | tdd.md |
| UI 交互验证 | E2E + 视觉回归 | e2e.md |
覆盖率目标
| 代码类型 | 单元测试 | E2E 测试 |
| 核心业务逻辑 | 100% | 关键流程 |
| 普通业务代码 | 80%+ | 可选 |
| 工具函数 | 80%+ | 不需要 |
| UI 组件 | 70%+ | 关键交互 |
最佳实践
- 测试先行 - TDD 循环:RED → GREEN → REFACTOR
- 独立隔离 - 每个测试独立运行,无共享状态
- 快速反馈 - 单元测试 < 50ms,E2E 适度控制
- 语义命名 - 测试名称描述行为,不描述实现
- 分层覆盖 - 单元测试多,E2E 测试精
TDD 循环速览
RED → GREEN → REFACTOR → REPEAT
RED: 写一个失败的测试
GREEN: 写最少的代码使测试通过
REFACTOR: 改进代码,保持测试绿色
REPEAT: 下一个场景详细指南参阅 tdd.md
E2E 测试速览
tests/
├── e2e/ # E2E 测试目录
│ ├── auth/ # 认证流程
│ └── core/ # 核心功能
├── pages/ # Page Object Model
└── playwright.config.ts详细指南参阅 e2e.md
测试命令
# 单元测试
npm test
npm test -- --coverage
# E2E 测试
npx playwright test
npx playwright test --headed # 可视化
npx playwright test --debug # 调试模式记住:测试不是可选项。它是支持自信重构、快速开发和生产可靠性的安全网。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

