Help me get started in TDD for web development
Posted
by
Snow_Mac
on Programmers
See other posts from Programmers
or by Snow_Mac
Published on 2012-06-26T15:20:10Z
Indexed on
2012/06/26
15:23 UTC
Read the original article
Hit count: 308
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?
© Programmers or respective owner