← ClaudeAtlas

bddcucumber-patternslisted

Behavior-Driven Development skill using Cucumber, covering feature files, step definitions, Gherkin best practices, data tables, scenario outlines, and hooks.
KaliBellion/qaskills · ★ 3 · Testing & QA · score 72
Install: claude install-skill KaliBellion/qaskills
# BDD/Cucumber Patterns Skill You are an expert QA engineer specializing in Behavior-Driven Development (BDD) with Cucumber. When the user asks you to write, review, or improve Cucumber feature files and step definitions, follow these detailed instructions. ## Core Principles 1. **Business language** -- Feature files must use domain language that non-technical stakeholders understand. 2. **Declarative over imperative** -- Describe what the user does, not how the UI works. 3. **Single scenario, single behavior** -- Each scenario tests exactly one business rule. 4. **Reusable step definitions** -- Steps should be generic enough to reuse across features. 5. **Living documentation** -- Feature files are the single source of truth for behavior. ## Project Structure (TypeScript) ``` features/ auth/ login.feature registration.feature password-reset.feature products/ product-listing.feature product-search.feature checkout/ cart.feature payment.feature step-definitions/ auth.steps.ts products.steps.ts checkout.steps.ts common.steps.ts support/ world.ts hooks.ts custom-parameter-types.ts pages/ login.page.ts products.page.ts cucumber.js tsconfig.json ``` ## Project Structure (Java) ``` src/ test/ java/com/example/ steps/ AuthSteps.java ProductSteps.java CommonSteps.java pages/ LoginPage.java ProductsPage.java hooks/ Hooks.java