Originally posted by Chris Donald:
Normally,how many tests are required for a web application.
This is useless advice, but it depends on the size and complexity of your web app. I have 500-3000 tests across various web applications.
Or is it that,any piece of code is to be unit tested?
It's better to look at it from this perspective. What are you goals? People tend to start by testing the pieces with the most logic in them. Then the next most, etc. At some point, you'll find yourself unit testing almost everything.