返回顶部
t

tdd-workflow

Test-driven development workflow enforcing 80%+ code coverage with unit, integration, and E2E tests. Write tests first, validate RED state, implement minimally, validate GREEN, then refactor. Use when writing features, fixing bugs, or refactoring. Trigger phrases: write tests, TDD, test-driven, feature implementation, bug fix. Adapted from everything-claude-code by @affaan-m (MIT)

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
78
下载量
0
收藏
概述
安装方式
版本历史

tdd-workflow

# Test-Driven Development Workflow Ensure all code development follows TDD principles with 80%+ code coverage. ## When to Activate - Writing new features or functionality - Fixing bugs or issues - Refactoring existing code - User says "write tests", "add specs", "how should I test this" ## Quick Start 1. Write user journey in acceptance-test format ("As a [role], I want...") 2. Generate test cases (happy path + edge cases + errors) 3. Run tests → verify RED state (must fail before implementation) 4. Implement minimal code to make tests pass → GREEN state 5. Refactor while keeping tests green 6. Verify 80%+ coverage achieved ## Key Concepts - **Tests before code** — Write tests first, then implementation - **RED-GREEN-REFACTOR** — Fail → Pass → Improve (no exceptions) - **80% coverage minimum** — Unit, integration, and E2E combined - **Unit-level isolation** — Mock dependencies, test behavior not implementation - **Independent tests** — No test ordering dependencies; each can run solo ## Common Usage Most frequent patterns: - Unit tests for functions and components - Integration tests for API endpoints and database operations - E2E tests for critical user flows - Edge case and error path testing - Fast execution (unit tests < 50ms each) ## References - `references/workflow-steps.md` — Detailed 7-step TDD cycle with git checkpoints - `references/patterns-and-best-practices.md` — Test patterns, common mistakes, success metrics

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 tdd-workflow-1776023565 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 tdd-workflow-1776023565 技能

通过命令行安装

skillhub install tdd-workflow-1776023565

下载 Zip 包

⬇ 下载 tdd-workflow v1.0.0

文件大小: 4.34 KB | 发布时间: 2026-4-13 12:17

v1.0.0 最新 2026-4-13 12:17
Initial release. TDD workflow enforcing 80%+ coverage with git checkpoints. Adapted from everything-claude-code by @affaan-m (MIT)

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部