Behavior Driven Development with easyb
By admin on Oct 1, 2008 in Java, open source
easyb is a behavior driven development framework for the Java platform. By using a specification based Domain Specific Language, easyb aims to enable executable, yet readable documentation.
BDD principles support the notion of stories. Stories can be made up of scenario
s that group specifications. The specifications are essential– they are essentially steps that are friendly to read. They are:
- Given (a context)
- When (something happens)
- Then (something else happens)
E.g.
1: scenario "customers should receive discounts", {
2: given "a shopping cart with 3 items"
3: when "a user checks out"
4: then "they should receive a 10% discount"
5: }
Popularity: 1% [?]
Sandra R | Sep 9, 2009 | Reply
Hi! I was surfing and found your blog post… nice! I love your blog. Cheers! Sandra. R.
Tony | Jun 3, 2010 | Reply
Nice blog!!