Code Analysis and Unit Testing - I Give Up

I tried.

So have others.

It's a total pain in the ass. I'd make a step forward, and then realize that I forgot something else in my initialization code (which was quickly becoming littered with Reflection code). The only option left was to Reflector FxCopCmd.exe, start with Main() and figure out how to truly "host" FxCop, but frankly I my desire to go the "write-a-lot-of-brittle-Reflection-code" again is very, very low. I've done it before, and it sucks.

I really hope that Microsoft addresses this. Developers want to unit test code based on the frameworks they produce. They're starting to do it with the MVC ASP.NET framework. Hopefully this one isn't far behind...

* Posted at 04.08.2008 01:35:18 PM (Last Update: 04.09.2008 08:23:17 AM) | 2 comments | Link | RSS *

Comments

# justnbusiness, from Justin Chase at 04.08.2008 05:25:02 PM

In Visual Studio Team System 2008, Developer Edition you can just go to the "Code Analysis" tab in the project settings and check the box "Enable Code Analysis on Build". Makes life a lot easier :)

# I SO hope you're kidding, from Jason Bock at 04.09.2008 08:23:13 AM

I hope the ":)" emoticon means you're joking, because that's not what I'm trying to get at...

Add a Comment

(*) = Required field
Name (*):

E-Mail (*):

Web Site:

Title (*):

Comments (*):

Enter the code you see (*)



Quote
"You know what? It's OK. If Bill O'Reilly needs to have an enemy, needs to feel persecuted, you know what, here's my Kuanza gift to him. Are you ready? Alright. I'm your enemy. Make me your enemy. I, Jon Stewart, hate Christmas, Christians, Jews, morality - and I will not rest until every year families gather to spend December 25th together at Osama's Homo-Abortion Pot and Commie Jizporium." Jon Stewart
Twitter History
follow me on Twitter
Blog History