AgentSkillsCN

platform-testing

不依赖特定框架的测试原则。通过添加专为测试设计的模式,扩展核心编码标准。适用于编写、审查或调试测试时使用。

SKILL.md
--- frontmatter
name: platform-testing
description: "Framework-agnostic testing principles. Extends core-coding-standards with test-specific patterns. Use when writing, reviewing, or debugging tests."

Principles

  • Test behavior, not implementation details
  • Prefer integration tests over unit tests (Testing Trophy)
  • Arrange-Act-Assert (AAA) pattern in every test
  • Tests must be independent — no shared mutable state
  • Keep tests small and focused — one behavior per test
  • Name tests to describe the behavior being verified
  • Optimize for confidence, not coverage percentage
  • Don't chase 100% coverage — test what matters

Rules

See rules/ for detailed patterns.