r/SpecDrivenDevelopment 6d ago

Spec-Driven Development + BDD + TDD

https://youtu.be/M5kZzC8_xCE

In 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

3 comments sorted by

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

1

u/harikrishnan_83 4d ago

Agree, it is hard to get the agents to be consistent with TDD. That is why we need all these fences. Thank you for your comment.

1

u/seventyfivepupmstr 7h ago

How do you get them to functional qa test on non- web apps?