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,
first write unittest for database models
write test for views (at this point start with integration test as well, along with unittests)
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.
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?