Recently i heard a dicussion in which TDD was the hot buzz word. Now acc to one speaker that to test your behaviors you need to use MVC but on the other side its been said that TDD is an approach which can be adopted in any environment (as the discussion sorround between ASP.NET MVC or Webforms). The other guy claimed if you put your behaviors in library or models then you can just test your repository or services in TDD and hence dont need to mingle with HTML or div's testing in both cases. What you think how much TDD should cover in case of Web GUI testing or is it worth the effort?
my question is more for Web GUI like HTML stuff we sent over the wire. so basically we should sum like this "does testing the web GUI is worth the effort?" as i wanted to see the prospective of other peers as i often seen that we use some buzz technologies to extreme which is not real benefit of real development scenario's. In other words cant we achieve the TDD with webforms as well or not?
I agree with you guys and thats actually my point too that if you really cater for TDD then you dont need to test your WEB UI front end as the data that you spitting out should be under your business/services/repositories layers which can be tested without it. So if you prgoram WebForm application in such a way that your operations/behaviors are tied in with server side calls (like button click events although in my point they can be tested by calling lower level operations) you can have TDD in web Forms . Thanks for your answers