nw-tdd-methodology

Apply Outside-In TDD with double-loop architecture to guide feature development.

Updated Mar 18, 2024
One-click install
npx skills add https://github.com/v1bh0r/precise-ledger-pro --skill nw-tdd-methodology-v1bh0r
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nw-tdd-methodology
Source: https://github.com/v1bh0r/precise-ledger-pro/tree/main/nWave/skills/nw-tdd-methodology
Command: npx skills add https://github.com/v1bh0r/precise-ledger-pro --skill nw-tdd-methodology-v1bh0r

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Delivers deep, practical guidance on Outside-In TDD, enabling teams to structure tests, interfaces, and collaboration across driving and driven ports using a double-loop approach.

Core Features & Use Cases

  • Provides a repeatable pattern for ATDD integration, port-to-port testing, and walking skeletons within hexagonal architectures.
  • Explains when to mock collaborators, how to design driving ports and driven ports, and how to apply test-doubles policies to maintain fast, reliable tests.
  • Use Case: A feature team uses Outside-In TDD to define guiding tests first, implement top-level interfaces, and progressively replace mocks with real domain components.

Quick Start

Outline a guiding user scenario and implement the driving port to begin the Outside-In workflow.

Frequently Asked Questions about nw-tdd-methodology

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

FAQPage Schema
How does outside-in TDD work with hexagonal architecture?

Outside-in TDD in hexagonal architecture uses a double-loop approach to guide feature development from driving ports to driven ports. You define guiding acceptance tests first, implement top-level interfaces, and progressively replace mocks with real domain components.

When should I mock collaborators during TDD?

Mock collaborators during outside-in TDD when defining boundaries between driving and driven ports. Apply test-doubles policies to isolate the system under test, then incrementally replace mocks with real domain implementations as the feature development progresses inward.

What is a walking skeleton in ATDD?

A walking skeleton in ATDD is a minimal end-to-end implementation that connects driving ports to driven ports. It establishes the port-to-port testing workflow within hexagonal architectures, providing a repeatable pattern for incremental TDD integration.

How do I structure driving and driven ports for test doubles?

Structure driving ports as entry points for acceptance tests and driven ports as outbound dependencies to mock. This double-loop test-doubles policy maintains fast, reliable tests by isolating collaborators during outside-in TDD workflows.

Can I use outside-in TDD for existing project refactoring?

Outside-in TDD suits project teams practicing ATDD and port-to-port testing within hexagonal architectures. It provides repeatable patterns for structuring interfaces and test doubles, applicable when refactoring toward clearer port boundaries.

Why use a double-loop architecture for TDD?

Double-loop architecture in outside-in TDD separates acceptance-level guiding tests from unit-level implementation tests. This approach enables teams to define interfaces first, mock collaborators, and incrementally replace mocks with real domain components.