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
-
I was pleased these Carrera Evolution Capris arrived in my mailbox for review as they hearken back to my favourite era of motorsports. The f...
-
The collection has the following 1899 Winton 1900 Rochet-Schneider 1901 Winton Bullet 1903 Gardner-Serpollet 1905 Electromobile 1906 CGV 190...
-
Most developers when developing Windows Communication Foundation (WCF) services, will take security for granted and deploy their web service...
-
Over the years, I have collected a number of frequently asked questions while working on Layered Architecture Solution Guidance (LASG) and ...
-
Chorus Grant will release their/his(?) debut album Chorus Grant and The Villa Nova on February 14 through Speed of Sound / A:Larm . A 33 s...
-
With the Entities and Data Access Component classes generated, it is now the time to look at the Motion: Business Component Template Genera...
-
I think this dash must be Bakelite, the fore runner of plastic
-
I was trying out ASP.NET WEB API 2 and I fumbled. I was caught off guard by the new Routing behavior. I created 2 controllers: public class...
-
Perhaps emboldened by our Essential Services post last week when we pointed out the fact that delivery drivers can safely ignore pestestria...
-
Which string concatenation method has the best performance? - I'm sure at some point in time, a developer will ask (or be asked) this q...
No comments:
Post a Comment