ha-zowietek-tdd

Community

Build robust code with Test-Driven Development.

Authortroykelly
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill enforces a strict Test-Driven Development (TDD) workflow, ensuring that all code is covered by tests, reducing bugs, improving design, and preventing regressions. It eliminates the "write code first, test later" anti-pattern, saving debugging time.

Core Features & Use Cases

  • RED-GREEN-REFACTOR Cycle: Guides through the core TDD process: write a failing test, write minimal code to pass, then refactor.
  • HA-Specific Testing Patterns: Provides examples for config flow, entity, and API client tests using pytest and MagicMock.
  • 100% Coverage Mandate: Requires all new code to achieve full test coverage, ensuring thorough validation.
  • Use Case: When implementing a new switch entity, this skill ensures you first write a test that fails (RED), then write minimal code to make it pass (GREEN), and finally refactor while keeping tests green (REFACTOR), guaranteeing the switch works as expected.

Quick Start

Use the ha-zowietek-tdd skill to write a failing test for the async_set_ndi_enabled method in api.py before implementing the actual logic.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: ha-zowietek-tdd
Download link: https://github.com/troykelly/homeassistant-zowietek/archive/main.zip#ha-zowietek-tdd

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository