tdd-workflow

Guide test-driven development across unit, integration, and end-to-end tiers for Decent Espresso features.

51|20|Updated Jan 29, 2025
One-click install
npx skills add https://github.com/tadelv/reaprime --skill tdd-workflow-tadelv
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/tadelv/reaprime/tree/main/.claude/skills/tdd-workflow
Command: npx skills add https://github.com/tadelv/reaprime --skill tdd-workflow-tadelv

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It reduces the risk of shipping broken changes by enforcing a project-specific, tiered testing workflow that keeps unit, integration, and end-to-end verification aligned with the intended behavior.

Core Features & Use Cases

  • Test-tier planning: Choose Unit, Integration, and/or End-to-end testing based on change type to avoid unnecessary work while maintaining coverage.
  • Outside-in test writing: Draft end-to-end scenarios first (when applicable), then integration tests, then unit tests, ensuring tests fail for the right reason before implementation begins.
  • Iterative verification loop: Keep tests stable during implementation and repeatedly re-run unit tests through self-review, followed by integration and end-to-end smoke verification using the project’s scripts/sb-dev.sh flow.

Quick Start

Use this skill when planning a feature, bugfix, or refactor so you can select the right test tiers, write failing tests first, and then verify end-to-end behavior via sb-dev when applicable.

Frequently Asked Questions about tdd-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write integration tests for Flutter WebSocket features using TDD?

To write integration tests for Flutter WebSocket features using TDD, draft outside-in scenarios first, verify they fail for the right reason, then implement code and run verification through flutter test and scripts/sb-dev.sh.

What is the best way to structure end-to-end smoke tests for a Flutter app?

The best way to structure end-to-end smoke tests is to use an outside-in approach: draft end-to-end scenarios first, keep tests stable during implementation, and validate running app behavior via REST and WebSocket calls through sb-dev.sh.

When should I choose unit tests over integration tests in a TDD workflow?

You should choose unit tests over integration tests based on the change type to avoid unnecessary work while maintaining coverage, selecting the appropriate tier during test-tier planning before writing any failing tests.

Does the red-green-refactor TDD workflow require running tests through sb-dev.sh?

Yes, the red-green-refactor TDD workflow requires running unit tests through self-review, followed by integration and end-to-end smoke verification using the project's scripts/sb-dev.sh flow to validate running app behavior.

Can I apply test-driven development to bugfixes and refactors, not just new features?

Yes, you can apply test-driven development to bugfixes and refactors by selecting the right test tiers, writing failing tests first that capture the intended behavior, and verifying end-to-end behavior via sb-dev.sh when applicable.

Why do my integration tests fail before implementation begins in TDD?

Integration tests fail before implementation begins in TDD to ensure they fail for the right reason, validating that the test correctly captures the intended behavior before you write the implementation code.