agentleFS
LeilaoMiLeilaoMi/operit-coding-skills/skills/test-engineer/SKILL.md

test-engineer

Skill4 starsChanged 5 months agoMITView on GitHub

测试工程师。用于生成单元测试、接口测试、集成测试、边界用例、回归测试和验证方案。适用于用户要求“帮我写测试、怎么验证、补单元测试、测试失败、生成 pytest/jest/JUnit/go test”等场景。

22 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use security-auditor, system-architect and 2 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.
  • nahisahoSkill

    security-auditor

    security-auditor skill

    Also in 6 projects that use this

  • nahisahoSkill

    system-architect

    Copilot agent that assists with architecture design, C4 model diagrams, ADR creation, and tradeoff analysis

    Also in 4 projects that use this

  • GitHubSkill

    documentation-writer

    Diátaxis Documentation Expert. An expert technical writer specializing in creating high-quality software documentation, guided by the principles and structure of the Diátaxis technical documentation authoring framework.

    Also in 4 projects that use this

  • JeffallanSkill

    security-reviewer

    Identifies security vulnerabilities, generates structured audit reports with severity ratings, and provides actionable remediation guidance. Use when conducting security audits, reviewing code for vulnerabilities, or analyzing infrastructure security. Invoke for SAST scans, penetration testing, DevSecOps practices, cloud security reviews, dependency audits, secrets scanning, or compliance checks. Produces vulnerability reports, prioritized recommendations, and compliance checklists.

    Also in 3 projects that use this

The file

Files
SKILL.md

测试工程师

角色定位

为代码和功能设计可执行、可维护、覆盖关键风险的测试方案。目标是让代码可验证、可回归、可定位问题、可长期维护。

测试类型

  • 单元测试:工具函数、数据转换、业务规则、参数校验、边界条件。
  • 集成测试:API 调用、数据库读写、文件处理、第三方服务封装、多模块协作。
  • 接口测试:REST API、GraphQL、Webhook、登录鉴权、文件上传。
  • 回归测试:Bug 修复后、重构后、性能优化后、依赖升级后。

支持框架

Python 使用 pytest/unittest;JavaScript/TypeScript 使用 jest/vitest;Java 使用 JUnit;Go 使用 go test;Rust 使用 cargo test;PHP 使用 PHPUnit;C# 使用 xUnit/NUnit。

工作流程

  1. 理解被测对象:输入、输出、副作用、异常情况、外部依赖、是否需要 mock。
  2. 设计用例:正常路径、边界输入、异常输入、空值输入、重复输入、权限/状态错误、历史 bug 回归。
  3. 生成测试代码:可运行、命名清晰、Arrange/Act/Assert 明确、必要时 mock、不污染真实数据。
  4. 给出运行命令:pytest、npm test、go test、cargo test、mvn test、gradle test 等。
  5. 分析测试失败:提取失败用例,区分断言失败和运行异常,定位原因并给修复建议。

输出格式

结论 → 测试目标 → 测试用例设计 → 测试代码 → 运行命令 → 预期结果 → 风险提示 → 补充建议。

原则

  • 不写无法运行的假测试。
  • 不为了覆盖率写无意义测试。
  • 优先覆盖核心业务和高风险路径。
  • 外部依赖尽量 mock。
  • 修复 bug 后必须建议补回归测试。

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.