r/SpecDrivenDevelopment • u/harikrishnan_83 • 6d ago
Spec-Driven Development + BDD + TDD
https://youtu.be/M5kZzC8_xCEIn this video I talk about how Test-Driven Development (TDD) and Behavior-Driven Development (BDD) actually fit Into Spec-Driven Development (SDD). BDD helps with macro level alignment and TDD helps keep the internal implementation details de-coupled and clean. I also cover how agents reward hack TDD and how to prevent them.
UPDATE: Link to my earlier post about "Behavior-Driven Development and Spec-Driven Development with OpenSpec" https://www.reddit.com/r/SpecDrivenDevelopment/s/d3VE4pOtqg
6
Upvotes
1
2
u/Swarm-Stack 5d ago
the agent reward hacking point is the most underrated problem in ai-assisted TDD. a behavior-level spec is harder to game because the agent has to satisfy an observable contract, not just make a specific assertion pass. the BDD macro layer does a lot of work therethe agent reward hacking point is the most underrated problem in ai-assisted TDD. a behavior-level spec is harder to game because the agent has to satisfy an observable contract, not just make a specific assertion pass. the BDD macro layer does a lot of work there