# Tdd

> Test Driven Development methodology with acceptance tests and unit tests. Use when the user asks to write tests, add test coverage, implement a feature using TDD, create a failing test first, or when discussing red-green-refactor, test-first development, or test strategy. Use when this capability is needed.

- Skill: `tomevault-io/tdd-10` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/tdd-10`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/tdd-10/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/tdd-10

---

# Test Driven Development

## When to use
- User asks to write tests, add test coverage, or create a failing test first
- User asks to implement a feature using TDD or test-first development
- User mentions "red-green-refactor", "acceptance test", or "unit test"
- User asks to verify that tests pass before committing
- User asks about test strategy or test structure

## Overview

This project follows Test Driven Development with acceptance tests and unit tests.

## Rules

1. Preserve file encoding
2. Analyze test setup (which test framework is actually used ?, how to build (see relevant skill) ?, how to run test (see relevant skill) ?, how to analyze code coverage (see relevant skill) ?)
3. Create a failing acceptance test if it does not exist. Add unit tests to test small cases or technical parts.
4. Implement the feature. Always double check before implementing if the function does not exist.
5. Run tests and get feedback
6. Refactor

## Run tests and get feedback

**CRITICAL: Before modifying the code:**

Before committing, always run **ALL** tests in the solution file. If the repo contains multiple .sln files, confirm which sln to use before.

1. **Tests pass with assertions** - Verify tests have meaningful assertions that check expected behavior
2. **Code coverage verified** - Check coverage report for new/modified code

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/cboudereau) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-16 -->

