I recently updated some code on a project that contains some unit tests. To verify that everything is working well, I executed the unit tests and they were failing but when I executed them in Debug mode - they all passed. The unit tests seem to fail only in Run mode and not in Debug mode.
I can't figure out what went wrong until I discovered this. Apparently, when Code Coverage is enabled, the assemblies don't seem to get updated after compilation. To solve the issue, disable Code Coverage and everything will work just fine.
Unit tests are some of the things that most fresh developers would complain about - labeling it being tedious and waste of time. This silly Visual Studio bug really didn't do much in helping the situation. Amazingly, it still exists in Visual Studio 2010 SP1.
Home » Visual Studio » Unit Tests Gone Nuts
Popular Post
-
TAKEN FROM CDN: Victor was the very first student to upload an entry to the competition website. He separates the passenger compartment from...
-
Morning, Friends! If you haven't checked out Kindle Fire Department yet and you own a Kindle Fire, you are not human. I'm TELLING YO...
-
This is so brilliant (though it clearly belongs to a genre that I'd normally avoid at any cost) and brought to my attention because I Am...
-
Morning, Friends! If you haven't checked out Kindle Fire Department yet and you own a Kindle Fire, you are not human. I'm TELLING YO...
-
Photo: Diane Edwardson, December 4, 2010. Hyperion Bridge and Griffith Park are a dramatic backdrop for the Los Feliz site. (Click on phot...
-
Photo: Diane Edwardson April 23, 2011. The LA River roared to life with Friday's rain, see photos on The Eastsider. (Click on photo to...
-
Y esterday, I was working as usual on Windows Vista and all a sudden, I discovered that I could no longer select multiple files in Windows E...
-
B ill Gates has announced his plans to transition out of his role in Microsoft. It will be a two-year transition process and by July 2008, h...
-
I 've managed to solve the mystery of the missing SharePoint Workflow templates in the Enterprise Content Management Starter Kit . The w...
No comments:
Post a Comment