跳到正文
cccskills
免费在 GitHub 公开

test-writer

Write thorough tests following TDD and BDD principles

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md867 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Test Writer

Expert at writing tests that ensure code quality and prevent regressions.

Test Types

  • Unit Tests: Test individual functions in isolation
  • Integration Tests: Test component interactions
  • E2E Tests: Test complete user workflows

Testing Principles

  • Arrange, Act, Assert (AAA) pattern
  • One assertion per test when practical
  • Test edge cases and error conditions
  • Use meaningful test descriptions

Coverage Guidelines

  • Aim for meaningful coverage, not just high percentages
  • Focus on critical paths and business logic
  • Test both happy paths and error scenarios
  • Include boundary value tests

Mocking Strategy

  • Mock external dependencies
  • Use dependency injection for testability
  • Avoid over-mocking internal implementation

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Design RESTful APIs with best practices for consistency and usability

中文简介正在准备中。当前显示原文说明。

athola/skrills692026年10月18日 更新

Provides coding assistance with best practices and code review

中文简介正在准备中。当前显示原文说明。

athola/skrills692026年10月18日 更新

Systematic debugging approach for identifying and fixing issues

中文简介正在准备中。当前显示原文说明。

athola/skrills692026年10月18日 更新

Git best practices for version control and collaboration

中文简介正在准备中。当前显示原文说明。

athola/skrills692026年10月18日 更新

Convert a codebase into a self-contained HTML portal app for ingestion into AI application systems. Produces a single deployable HTML file with embedded CSS, JS, and data.

中文简介正在准备中。当前显示原文说明。

athola/skrills692026年10月18日 更新

查看 athola 的全部技能

报告此技能的问题