Geeks With Blogs
Enterprise Architecture by Ahsan Alam

Is unit testing a difficult thing to ask for? I don't understand why developers try to simply avoid unit testing. We have unit testing integrated to Visual Studio; there is also NUnit. These make life easier, not difficult. Maybe, it needs a little getting used to at first; but eventual benefit simply outweighs all the pains.

I have noticed that people try to build unit tests if they are carefully watched; otherwise they tend to skip. It is sometimes difficult to implement strict procedures in a smaller organizations because people end up wearing many hats. A developer is not just a developer. They might be juggling duties of Business Analyst, Project Manager and Architect to name a few. But I don't see any other alternatives but to become a unit test Nazi.

Posted on Thursday, November 18, 2010 10:07 PM .NET , General , Architecture | Back to top

Comments on this post: Unit test Nazi

# re: Unit test Nazi
Requesting Gravatar...
Yes I accept you. Unit testing is not much complicated one. But many of the developers avoid that. I don't know why? But after reading this post, definitely they will do the unit testing also.
Left by Software Testing on Nov 18, 2010 11:23 PM

# re: Unit test Nazi
Requesting Gravatar...
Its one of the nice post which I really like a lot.I really appreciate this post. Thanks for sharing this post. Keep blogging.
Left by Atlanta Search Engine Optimizati on Nov 18, 2010 11:24 PM

# re: Unit test Nazi
Requesting Gravatar...

You have seen my code and know that I believe in unit tests. The problem I run into is pieces of code that require a fully formed document (read lots of XML) in order to actually test. I would really like to find a way to test them, but so far these scenarios are more costly to write tests for than to handle the errors after the fact. I would love to discuss these types of problems.

Left by Tim on Nov 24, 2010 4:57 PM

# re: Unit test Nazi
Requesting Gravatar...

It's really painful to build unit tests for code that require fully formed XML documents. Our BizTalk system relies heavily on XML data. However, all the key process components are built using sub-components that may rely only on a subset of the XML data (or mostly deserialized objects). So, we can build unit tests for the granular components without XML documents.

Left by Ahsan on Nov 27, 2010 8:47 PM

Your comment:
 (will show your gravatar)

Copyright © Ahsan Alam | Powered by: