mcpField
T
testing-qa

testing-qa

github.com/sickn33测试与质量48.9k139 次安装今天更新
代码仓库

关于 testing-qa

面向软件团队的测试与 QA 工作流技能,涵盖测试策略、单元与集成测试、E2E 和浏览器自动化、性能检查、代码审查及质量门禁。它将流程划分为多个阶段,并为各阶段列出相关技能。

主要功能

  1. 01测试策略与基础设施
  2. 02单元与集成测试
  3. 03E2E 与浏览器自动化
  4. 04性能测试
  5. 05代码审查与质量门禁

适用场景

  1. 01规划软件测试策略
  2. 02编写单元与集成测试
  3. 03自动化浏览器及 E2E 检查
  4. 04设定发布质量门禁

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/sickn33/agentic-awesome-skills --skill testing-qa

安装后在 Claude Code 中输入/testing-qa确认已加载。

详细介绍

测试/QA 工作流套装

概述

涵盖单元测试、集成测试、E2E 测试、浏览器自动化及质量门禁的全面测试与质量保证工作流,助力打造可上线的软件。

何时使用此工作流

在以下场景使用此工作流:

  • 搭建测试基础设施
  • 编写单元测试和集成测试
  • 实现 E2E 测试
  • 自动化浏览器测试
  • 建立质量门禁
  • 执行代码审查

工作流阶段

阶段 1:测试策略
调用的技能
  • test-automator - 测试自动化
  • test-driven-development - TDD
操作
  1. 定义测试策略
  2. 选择测试框架
  3. 规划测试覆盖率
  4. 搭建测试基础设施
  5. 配置 CI 集成
可复制粘贴的提示词
Use @test-automator to design testing strategy
Use @test-driven-development to implement TDD workflow
阶段 2:单元测试
调用的技能
  • javascript-testing-patterns - Jest/Vitest
  • python-testing-patterns - pytest
  • unit-testing-test-generate - 测试生成
  • tdd-orchestrator - TDD 编排
操作
  1. 编写单元测试
  2. 设置测试夹具
  3. 配置 mock
  4. 测量覆盖率
  5. 与 CI 集成
可复制粘贴的提示词
Use @javascript-testing-patterns to write Jest tests
Use @python-testing-patterns to write pytest tests
Use @unit-testing-test-generate to generate unit tests
阶段 3:集成测试
调用的技能
  • api-testing-observability-api-mock - API 测试
  • e2e-testing-patterns - 集成模式
操作
  1. 设计集成测试
  2. 搭建测试数据库
  3. 配置 API mock
  4. 测试服务交互
  5. 验证数据流
可复制粘贴的提示词
Use @api-testing-observability-api-mock to test APIs
阶段 4:E2E 测试
调用的技能
  • playwright-skill - Playwright 测试
  • e2e-testing-patterns - E2E 模式
  • webapp-testing - Web 应用测试
操作
  1. 设计 E2E 场景
  2. 编写测试脚本
  3. 配置测试数据
  4. 设置并行执行
  5. 实现视觉回归
可复制粘贴的提示词
Use @playwright-skill to create E2E tests
Use @e2e-testing-patterns to design E2E strategy
阶段 5:浏览器自动化
调用的技能
  • browser-automation - 浏览器自动化
  • webapp-testing - 浏览器测试
  • screenshots - 截图自动化
操作
  1. 搭建浏览器自动化
  2. 配置无头测试
  3. 实现视觉测试
  4. 捕获截图
  5. 测试响应式设计
可复制粘贴的提示词
Use @browser-automation to automate browser tasks
Use @screenshots to capture marketing screenshots
阶段 6:性能测试
调用的技能
  • performance-engineer - 性能工程
  • performance-profiling - 性能剖析
  • web-performance-optimization - Web 性能
操作
  1. 设计性能测试
  2. 搭建负载测试
  3. 测量响应时间
  4. 识别瓶颈
  5. 优化性能
可复制粘贴的提示词
Use @performance-engineer to test application performance
阶段 7:代码审查
调用的技能
  • code-reviewer - AI 代码审查
  • code-review-excellence - 审查最佳实践
  • find-bugs - Bug 检测
  • security-scanning-security-sast - 安全扫描
操作
  1. 配置审查工具
  2. 运行自动化审查
  3. 检查 Bug
  4. 验证安全性
  5. 批准变更
可复制粘贴的提示词
Use @code-reviewer to review pull requests
Use @find-bugs to detect bugs in code
阶段 8:质量门禁
调用的技能
  • lint-and-validate - Lint 检查
  • verification-before-completion - 验证
操作
  1. 配置 linter
  2. 设置格式化工具
  3. 定义质量指标
  4. 实现门禁
  5. 监控合规性
可复制粘贴的提示词
Use @lint-and-validate to check code quality
Use @verification-before-completion to verify changes

测试金字塔

        /       /  \    E2E Tests (10%)
      /----     /      \  Integration Tests (20%)
    /--------   /          \ Unit Tests (70%)
  /------------```

The 70/20/10 pyramid and coverage percentages are illustrative planning heuristics, not universal pass thresholds. Choose tests from actual failure risks and repository policy. Use isolated accounts/data, bound load tests and avoid production side effects; remote browser captures and paid runners need their actual scope. A code-review phase does not grant approval/merge authority.

## Quality Gates Checklist

- [ ] Unit test coverage > 80%
- [ ] All tests passing
- [ ] E2E tests for critical paths
- [ ] Performance benchmarks met
- [ ] Security scan passed
- [ ] Code review approved
- [ ] Linting clean

## Related Workflow Bundles

- `development` - Development workflow
- `security-audit` - Security testing
- `cloud-devops` - CI/CD integration
- `ai-ml` - AI testing

## Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

评论

支持 Markdown