12 votes
Accepted

Should you define acceptance tests for vital yet simple behavior?

Yes, test the vital but simple behavior. At least for 3 reasons: The whole idea behind BDD is to promote collaboration between business and technical people, to achieve a common understanding, and ...
Christophe's user avatar
  • 77.3k
8 votes

Should you define acceptance tests for vital yet simple behavior?

One reason I don't use BDD on the regular is that the devil is in the details, and BDD hides detail rather than exposing it. For example, your last line is Then its new position should be the sum of ...
l0b0's user avatar
  • 11.4k
4 votes

Should you define acceptance tests for vital yet simple behavior?

You might have chosen a bad example. It should be new pos = old pos + (vel * delta time) You would expect this calc to apply to everything in the engine, not just the boids. "when it moves" ...
Ewan's user avatar
  • 75.8k
4 votes
Accepted

Can BDD acceptance criteria format (Given - When - Then) be used for technical debt or tasks?

Behavior-driven development is far more than the Given-When-Then format of Gherkin and Gherkin-like languages. BDD is an evolution of test-driven development (TDD) and acceptance test-driven ...
Thomas Owens's user avatar
  • 82.7k
4 votes
Accepted

Does the "Pyramid of tests" contradict the idea of tests focusing on behaviour?

I think things start to make sense once you concede that "unit test" should not test a unit of code (like class or a function) but unit of behavior. Imagine your application has simple ...
Euphoric's user avatar
  • 37.4k
4 votes

Outside-in v. inside-out development in regard to DDD & BDD

DDD urges you to build out your core domain independently of infrastructural concerns so you can focus on what matters most to your business, but how can you do that when outside-in tests will only ...
Flater's user avatar
  • 49.9k
3 votes

Should you define acceptance tests for vital yet simple behavior?

This looks like something which should be at least covered by unit tests. As for BDD, it depends. As already pointed out, position and velocity are not directly compatible for addition; you've assumed ...
Zenilogix's user avatar
  • 339
2 votes

Outside-in v. inside-out development in regard to DDD & BDD

Recommended reading: Parnas 1971 Berard 1993. The underlying motivation for all of the ceremony is to drive down the costs of change. Abstraction gives us a mechanism for separating "important&...
VoiceOfUnreason's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible