# Testing - TDD/BDD Principles

Universal TDD/BDD testing principles, best practices, and anti-patterns for any technology stack.

Part of [Claude-Craft](https://github.com/TheBeardedBearSAS/claude-craft) -- AI-assisted development framework for Claude Code.

## Installation

Copy this directory to your project's `.claude/skills/` directory:

```bash
cp -r testing/ your-project/.claude/skills/testing/
```

## What's Included

- `SKILL.md` -- Skill definition with triggers and quick reference
- `REFERENCE.md` -- Comprehensive testing guidelines covering TDD, BDD, test pyramid, best practices, and anti-patterns

## Covers

- Test-Driven Development (TDD) -- Red/Green/Refactor cycle
- Behavior-Driven Development (BDD) -- Given/When/Then with Gherkin
- Test pyramid -- unit (70%), integration (20%), E2E (10%)
- Best practices -- AAA pattern, naming conventions, test independence
- Anti-patterns -- flaky tests, implementation testing, commented tests

## Technology Agnostic

This skill provides universal testing principles applicable to any language and testing framework. It does not prescribe specific tools -- adapt the principles to your stack's ecosystem.

## License

MIT -- See [Claude-Craft](https://github.com/TheBeardedBearSAS/claude-craft) for full license.
