Help me get started in TDD for web development
- by Snow_Mac
I've done a tiny, tiny bit of TDD in building an app for a company that I interned with. We used lots of mocking and wrote lots of assert statements, after reading lots of blogs, I'm convinced that TDD is the way to go, but how do you go about TDD web applications? My main framework is Yii in PHP.
My main questions are:
What do you test? Models? Controllers? Views?
How do you know if the output is correct?
All my web apps interact with a DB, are there cavets to that and gotchas?
Can I do testing in Netbeans?
Can you test form elements or just strictly objects & methods?