I am new to TDD. I have a new project to develop a new application to manage visitors to my office. Currently, it is all manual - visitors write in a logbook - visiting time, who they visitm purpose, appointment/no appoitment etc. Can I use TDD for development? The first thing in TDD is to write fail cases for an automated testing - I don't even have an application now to start with. Please advise. Thank you.
Very helpful. If developers develop tests using TDD approach, what testers have to automate? Can both TDD(for developers) and BDD(Cucumber for test automation) be implemented in the project.
Very well explained Pramod. BTW, which is this tool with which you explained the TDD concepts rather than a traditional PPT. Curious to know it and use it too.
You have basically did code changes after you started the recording and didnt mention it properly. Initially it was failing for second TC. Then u went and changed it to assertfalse without informing. U need to fix these kind of things.
I always see this approach to explaining TDD but it isn't right - the basic explanation of writing your test fixture first and putting in skeleton/empty methods to make the compiler happy isn't TDD. TDD isn't just about writing tests firsts it's a design process - from your tests, your application design should manifest itself - because it forces you to manage your dependencies. And you shouldn't predetermine all your tests before you need to start cutting code because you don't know all the units yet. And BDD doesn't help either before anyone says it, because behaviours are concepts way above unit and even integration testing, and is more relative to UAT, so I never understood why BDD comes up in the same conversation as TDD...