nw-bdd-methodology

Featured

BDD patterns for acceptance test design - Given-When-Then structure, scenario writing rules, pytest-bdd implementation, anti-patterns, and living documentation

Testing & QA 636 stars 68 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
93
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# BDD Methodology for Acceptance Test Design ## Core Philosophy Test units of behavior, not units of code. Acceptance tests validate business outcomes through public interfaces, decoupled from implementation. ## Outside-In Double-Loop TDD The acceptance-designer creates the outer loop of Outside-In TDD. Development starts from user perspective, drives inward. **Outer loop (acceptance/BDD)**: Hours to days | User perspective, business language | Defines "done" | Scenarios describe user goals and observable outcomes, not internals | Failing outer-loop test is the starting signal for implementation **Inner loop (unit/TDD)**: Minutes | Developer perspective, technical terms | Software-crafter owns this loop Workflow: 1. Write failing acceptance test from user perspective (outer loop -- outside) 2. Software-crafter drops to inner loop: unit tests to implement components (inside) 3. Iterate inner loop until acceptance test passes 4. Passing acceptance test proves user value delivered 5. Repeat for next behavior Outer loop defines WHAT users need (outside). Inner loop drives HOW to build it (inside). ## Given-When-Then Structure ```gherkin Scenario: [Business-focused title describing one behavior] Given [preconditions - system state in business terms] When [single user action or business event] Then [observable business outcome] ``` ### Scenario Writing Rules **Rule 1: One scenario, one behavior** -- Split multi-behavior scenarios. **Rule 2: Declarative, not imper...

Details

Author
nWave-ai
Repository
nWave-ai/nWave
Created
9 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category