0xbigboss avatar

Testing Best Practices

Use this when you need to design or write tests and want opinionated structure instead of ad hoc chaos. It pushes you toward layered coverage: data-driven unit tests with property-based fuzzing, integration tests for contracts and auth boundaries, and state-tolerant e2e flows that run idempotently without assuming a clean slate. The hard rules are genuinely useful: no invented signatures, no fabricated fixtures, no test-only backdoors in product code. It produces test strategy, a matrix with case IDs, and an implementation plan. Best for teams that want testing discipline baked into the workflow rather than debated every sprint.

skills.sh installs
135
GitHub stars
48
last updated
Jun 3, 2026

Install

$ npx -y skills add 0xbigboss/claude-code --skill testing-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Files

Test layering policy

Unit tests

Purpose: verify individual functions and invariants in isolation.

  • Data-driven: parameterized tables covering happy path, boundary, error, and edge cases.
  • Property-based: fuzz invariants that must hold across all inputs (e.g., idempotency, sort stability, roundtrip serialization).
  • Derive cases from the module's public API surface: input types/constraints, output shape, error modes, invariants.

Integration / contract tests

Purpose: verify interactions between components and external services.

  • API envelope: request/response shape, status codes, content types, pagination.
  • Error contract: error codes, error shapes, rate limiting, retries.
  • Auth and scoping: token validation, role-based access, tenant isolation.
  • Eventual consistency: verify convergence within bounded time; poll rather than sleep.
  • Reuse auth state across tests where possible; avoid redundant login flows.

E2E tests

Purpose: verify real user workflows through the full stack.

Sponsors

Details

Repository
github.com/0xbigboss/claude-code
Category
Testing & QA
First seen
Jun 3, 2026

More from 0xbigboss/claude-code

All 22
1jabrena avatar132-java-testing-integration-testingjabrena/cursor-rules-java132 java testing integration testing128skills.sh installs
2absolutelyskilled avatarmobile-testingabsolutelyskilled/absolutelyskilledmobile testing125skills.sh installs
3shipshitdev avatartesting-expertshipshitdev/librarytesting expert120skills.sh installs
4erichowens avatartest-automation-experterichowens/some_claude_skillstest automation expert119skills.sh installs
5skillcreatorai avatarqa-regressionskillcreatorai/ai-agent-skillsqa regression118skills.sh installs
6laolaoshiren avatartest-generatorlaolaoshiren/claude-code-skills-zh自动生成单元测试:识别函数逻辑、覆盖边界条件、生成可运行测试代码0skills.sh installs