How to organize unit/integration test in BDD

Posted by whatf on Programmers See other posts from Programmers or by whatf
Published on 2012-09-21T05:32:46Z Indexed on 2012/09/21 9:49 UTC
Read the original article Hit count: 250

Filed under:
|
|
|

So finally after reading a lot, I have understood that the difference between BDD and TDD is between T & B. But coming from basic TDD background, what I used to was,

  1. first write unittest for database models

  2. write test for views (at this point start with integration test as well, along with unittests)

  3. write more integration tests for testing UI stuff.

What would be a correct way to approach BDD. Say I have a simple blog application.

Given : When a user logs in. 
He should be shown list of all his posts. 

But for this, I need a model with a row user, another row blog posts.
So how do we go about writing tests?
when do we create fixtures? When do we write integration (selenium) tests?

© Programmers or respective owner

Related posts about python

Related posts about TDD