bdd-testing
Note:
CLAUDE.mdis a symlink to this file.
Overview
Master Behavior-Driven Development (BDD) testing with comprehensive guidance on principles, patterns, Gherkin syntax, collaboration practices, and Cucumber.js implementation.
Structure
bdd-testing/
SKILL.md # Main navigation hub - read this first
AGENTS.md # This file - complete reference guide
CLAUDE.md # Symlink to AGENTS.md
references/ # Detailed reference files by category
Usage
- Read
SKILL.mdto understand when and how to apply BDD practices - Navigate to specific categories based on your current task
- Load reference files on-demand - only read what you need for the task
- Start with principles, then move to patterns, then implementation
Reference Categories
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Principles & Philosophy | CRITICAL | principles- |
| 2 | Gherkin Syntax & Structure | CRITICAL | gherkin- |
| 3 | Collaboration Practices | HIGH | collaboration- |
| 4 | Scenario Writing | HIGH | scenarios- |
| 5 | Patterns & Anti-patterns | MEDIUM | patterns- |
| 6 | Cucumber.js Implementation | MEDIUM | cucumber- |
Reference files are named {prefix}-{topic}.md.
Available References
Principles & Philosophy (principles-):
references/principles-core-philosophy.md- What is BDD, discovery-development-delivery cyclereferences/principles-three-amigos.md- Three perspectives collaboration practicereferences/principles-living-documentation.md- Executable specifications as documentationreferences/principles-ubiquitous-language.md- Shared vocabulary between business and techreferences/principles-example-mapping.md- Workshop technique with colored cardsreferences/principles-specification-by-example.md- Concrete examples drive developmentreferences/principles-outside-in.md- Outside-in development workflowreferences/principles-bdd-vs-tdd.md- Differences and how they complement each other
Gherkin Syntax & Structure (gherkin-):
references/gherkin-syntax.md- Feature, Scenario, Given/When/Then keywordsreferences/gherkin-given-when-then.md- Arrange-Act-Assert pattern explainedreferences/gherkin-scenario-outlines.md- Data-driven tests with Examples tablesreferences/gherkin-background.md- Common setup for all scenarios in a featurereferences/gherkin-tags.md- Organizing and filtering scenarios with tagsreferences/gherkin-data-tables.md- Passing structured data to steps
Collaboration Practices (collaboration-):
references/collaboration-three-amigos-sessions.md- Running effective discovery sessionsreferences/collaboration-example-mapping-workshop.md- Yellow/blue/green/red card techniquereferences/collaboration-discovery-workshop.md- Structured 50-minute workshop formatreferences/collaboration-building-ubiquitous-language.md- Creating shared domain vocabularyreferences/collaboration-stakeholder-involvement.md- Engaging business stakeholders
Scenario Writing (scenarios-):
references/scenarios-writing-good-scenarios.md- Specific, declarative, independent scenariosreferences/scenarios-acceptance-criteria.md- Rule-based acceptance criteria formatreferences/scenarios-edge-cases.md- Systematically covering edge casesreferences/scenarios-organization.md- Feature file structure and organizationreferences/scenarios-declarative-vs-imperative.md- Business-focused vs implementation-focused
Patterns & Anti-patterns (patterns-):
references/patterns-one-scenario-one-behavior.md- Single responsibility for scenariosreferences/patterns-independent-scenarios.md- Avoiding scenario dependenciesreferences/patterns-background-usage.md- When and how to use Backgroundreferences/patterns-reusable-steps.md- Creating maintainable step definitionsreferences/patterns-domain-language.md- Using business terms not technical jargonreferences/patterns-common-antipatterns.md- What to avoid in BDD tests
Cucumber.js Implementation (cucumber-):
references/cucumber-setup.md- Installation and project structurereferences/cucumber-step-definitions.md- Writing step definitions in TypeScriptreferences/cucumber-cucumber-expressions.md- Parameter types and custom patternsreferences/cucumber-world.md- Sharing state between stepsreferences/cucumber-hooks.md- Before/After hooks and setup/teardownreferences/cucumber-configuration.md- cucumber.js config, parallel execution, profilesreferences/cucumber-running-tests.md- CLI commands, tags, dry-run, snippets
Consolidates 6 original skills: bdd-collaboration, bdd-gherkin, bdd-patterns, bdd-principles, bdd-scenarios, cucumber-best-practices
42 reference files across 6 categories