VS Testing – Annoyance Of The Day

This is mostly a rant, so feel free to skip this one.  Really.

(Most folks are probably already enjoying the holiday weekend anyways…)

<rant>

I’ve recently started a new project on which I have to use the dreaded VS Testing framework again, or as I call it, the “Microsoft Visual Studio Enterprise Unit Testing Framework, um, Block”.  Gotta have that word “enterprise” and “block” in there somewhere, right?  :P

I know it’s a minor thing, but why doesn’t the VS Testing [Ignore] attribute allow you to pass in a message as to exactly *why* you are ignoring this test.  This just once again promotes bad practices by allowing folks to slap [Ignore] attributes on any tests they don’t feel like working on right now without giving them the option of documenting why!

Sure, you can do an Assert.Inconclusive(message) inside of the test to achieve the same thing, but then that would require you mess around in the test method body when you end up wanting to re-enable the test.  Not nearly as clear as just removing an [Ignore] attribute.

This, along with the ExpectedException debacle that has also bitten me in the past, are just a couple things that make simple frameworks like NUnit, or even better, MBUnit much better choices.  IMHO.

Guess that’s what happens when you re-invent only 95% of NUnit.  :O

</rant>

Ok, *now* I can start the weekend.  :)   And, if you made it this far, you have a good weekend as well! 

Joey.  Out.

Related Articles:

Post Footer automatically generated by Add Post Footer Plugin for wordpress.

This entry was posted in tdd, tools. Bookmark the permalink. Follow any comments here with the RSS feed for this post.

Comments are closed.