一键导入
test-case-writing
Skill for test case design — equivalence partitioning, boundary value analysis, test data builders, and test coverage strategy.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Skill for test case design — equivalence partitioning, boundary value analysis, test data builders, and test coverage strategy.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Planning Mode skill for guided execution of large tasks. Provides structured task decomposition, user confirmation, per-task verification, retry logic, and quality summary.
Git 工作流 — 版本控制、提交规范、分支管理、.gitignore 治理
Structured bug diagnosis and repair workflow using the 5-Whys root cause analysis method. Ensures fixes include tests, documentation, and knowledge capture.
Generates structured documents including architecture diagrams (Mermaid), usage manuals, progress reports, and API documentation from code analysis.
Extracts reusable patterns and lessons from execution history and project experience. Generates structured knowledge entries for the knowledge base.
Evaluates project progress by analyzing workspace structure, code completeness, and comparing against planned milestones. Outputs structured progress reports.
| name | test-case-writing |
| description | Skill for test case design — equivalence partitioning, boundary value analysis, test data builders, and test coverage strategy. |
| stage | testing |
| type | delivery-skill |
| version | 3.0 |
| category | delivery |
| scope | platform |
| tags | ["methodology","testing","test-design"] |
Guides systematic test case design to maximize defect detection with a manageable number of test cases.
Divide input domain into classes where all values produce the same behavior. Test at least one value from each partition.
| Partition | Values | Expected | Test Value |
|---|---|---|---|
| Below minimum | < 1 | Validation error | 0 |
| Valid range | 1-999 | Accepted | 50 |
| Above maximum | > 999 | Validation error | 1000 |
| Null/missing | null | Validation error | null |
| Negative | < 0 | Validation error | -1 |
Bugs cluster at partition boundaries. Test exact boundary values and adjacent values.
Use the Builder pattern for test data with sensible defaults:
class OrderTestDataBuilder {
private var id: UUID = UUID.randomUUID()
private var status: OrderStatus = OrderStatus.PENDING
private var items: MutableList<OrderItem> = mutableListOf()
fun withStatus(status: OrderStatus) = apply { this.status = status }
fun confirmed() = apply { this.status = OrderStatus.CONFIRMED }
fun withSingleItem(
quantity: Int = 1,
unitPrice: BigDecimal = BigDecimal("9.99")
) = apply {
items.add(OrderItem(quantity = quantity, unitPrice = unitPrice))
}
fun build(): Order = Order(id = id, status = status, items = items)
}
// Usage: anOrder().confirmed().withSingleItem().build()
anOrder(), aCustomer(), aProduct().confirmed(), .withExpiredPayment()