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: 276

Filed under:
|

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:

  1. What do you test? Models? Controllers? Views?
  2. How do you know if the output is correct?
  3. All my web apps interact with a DB, are there cavets to that and gotchas?
  4. Can I do testing in Netbeans?
  5. Can you test form elements or just strictly objects & methods?

© Programmers or respective owner

Related posts about php

Related posts about TDD