File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Testing and the fly likes Behavior-driven testing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Behavior-driven testing" Watch "Behavior-driven testing" New topic
Author

Behavior-driven testing

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Hi Lasse.
Gongrats on the new book.
Does your book cover "Behavior-driven testing"?
Thanks.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

What is behavior driven testing ?


Groovy
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Check JBehave
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
I presume you meant Behavior-Driven Development (BDD)?

To put it short, to me BDD is "TDD done right." It's based on the idea that you should be specifying desired behavior of objects rather than focusing on, for example, implementation details such as objects' internal state. Also, BDD puts a lot of focus in the kinds of terminology you use, trying to bring the specifications (tests) closer to the business domain in their vocabulary.

These are all things I consider being part of TDD when it's applied well.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Also, I'm personally more in favor of JDave than JBehave as my chosen "BDD framework." I don't use it much yet, however, as I find myself quite satisfied with JUnit 4.
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

I presume you meant Behavior-Driven Development (BDD)?

Well, yes.
Sorry for this.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Behavior-driven testing