Unit testing is a must learn technology for an asp.net programmer?
-
I am comparatively new to the test driven development and unit testing. I spent last two weeks to learn the concept of these technologies. Following is my understanding about unit testing. Please correct me if I am wrong. 1. Unit test would be an over kill for small asp.net projects. 2. I believe testing how aspx pages rendering is an important fact. As far I know NUnit test is not capable for doing this. I know the free tool NUnitAsp but the development on this project is terminated. I also found some other tools like selenium. How is your opinion about it? Is it worth to learn NUnit test for asp.net? How about to implement Unit test in small asp.net applications? Thanks and regards, Poppy
-
I am comparatively new to the test driven development and unit testing. I spent last two weeks to learn the concept of these technologies. Following is my understanding about unit testing. Please correct me if I am wrong. 1. Unit test would be an over kill for small asp.net projects. 2. I believe testing how aspx pages rendering is an important fact. As far I know NUnit test is not capable for doing this. I know the free tool NUnitAsp but the development on this project is terminated. I also found some other tools like selenium. How is your opinion about it? Is it worth to learn NUnit test for asp.net? How about to implement Unit test in small asp.net applications? Thanks and regards, Poppy
First of all, unit testing is not a technology. It's a practice.
popchecker wrote:
Unit test would be an over kill for small asp.net projects.
I don't think so. Most of the projects start as small and evolve to a bigger one. In such cases unit testing helps you to catch errors when you move code around and add more code. When the application is small, number of unit tests also will be small. So I don't see anything wrong in having that.
popchecker wrote:
I believe testing how aspx pages rendering is an important fact
I am afraid that is not unit testing. Usually you don't write unit tests for the presentation part. You need to split the things that needs testing from the UI and keep UI very thin. Patterns like MVC and MVP helps you to achieve this kind of design.
popchecker wrote:
I know the free tool NUnitAsp but the development on this project is terminated. I also found some other tools like selenium. How is your opinion about it?
I haven't used it so far. But I have heard some good comments about selenium.
popchecker wrote:
Is it worth to learn NUnit test for asp.net?
Yes.
Best wishes, Navaneeth
-
First of all, unit testing is not a technology. It's a practice.
popchecker wrote:
Unit test would be an over kill for small asp.net projects.
I don't think so. Most of the projects start as small and evolve to a bigger one. In such cases unit testing helps you to catch errors when you move code around and add more code. When the application is small, number of unit tests also will be small. So I don't see anything wrong in having that.
popchecker wrote:
I believe testing how aspx pages rendering is an important fact
I am afraid that is not unit testing. Usually you don't write unit tests for the presentation part. You need to split the things that needs testing from the UI and keep UI very thin. Patterns like MVC and MVP helps you to achieve this kind of design.
popchecker wrote:
I know the free tool NUnitAsp but the development on this project is terminated. I also found some other tools like selenium. How is your opinion about it?
I haven't used it so far. But I have heard some good comments about selenium.
popchecker wrote:
Is it worth to learn NUnit test for asp.net?
Yes.
Best wishes, Navaneeth
Thanks for reply. Let me ask one more question. How can I test my presentation part? Can you please suggest me a method? Thanks and regards, Poppy
-
Thanks for reply. Let me ask one more question. How can I test my presentation part? Can you please suggest me a method? Thanks and regards, Poppy
You have to use UI testing frameworks like QTP.
Best wishes, Navaneeth
-
You have to use UI testing frameworks like QTP.
Best wishes, Navaneeth
Thanks Navaneeth :-D I am going to implement NUnit test in my next project. Sure I will come back with few more doubts. :thumbsup: