AgentSkillsCN

test-planning

提供全面测试覆盖规划的战略性指导。适用于启动全新测试工作,或审视测试盲区时使用。

SKILL.md
--- frontmatter
name: test-planning
description: Strategic guide for planning comprehensive test coverage. Use when starting a new testing effort or reviewing test gaps.

Test Planning Strategy

Test Scenario Matrix

TypeDescriptionExample
Happy PathNormal expected usageParse valid 80-byte record
Boundary ValuesEdge of valid rangeBalance = 0.00 and 99999.99
Invalid InputOutside valid rangeRecord length ≠ 80
Error ConditionsExceptions and errorsFile not found, null input
IntegrationComponent interactionsPsam1 calls Psam2

Test Pyramid

code
     /\     E2E (3-5 tests)
    /  \    Integration (10-20 tests)
   /    \   Unit (40-60 tests, fast & focused)

Coverage Goals by Component

PriorityComponentCoverageTest Types
P0Business Logic90%+Unit + Integration
P0Data Models95%+Unit
P1I/O Operations80%+Integration
P2Utilities70%+Unit

Planning Checklist

  • List all public methods and classes
  • Identify happy path scenarios
  • List boundary values
  • Plan error scenarios
  • Determine what needs mocks vs real components
  • Estimate test count per component
  • Implement critical tests first