How do I remove test projects from code coverage in Visual Studio 2012 15 September 2013 Donovan-Brown Work (0) Problem: My code coverage results include my test project classes. Solution: Apply the ExcludeFromCodeCoverage attribute to your unit test classes.
How to enable code coverage in my Team Build 03 October 2011 Donovan-Brown Work (0) Problem: I am not getting code coverage results in my build. Solution: Ensure you have a test settings file selected in your build definition. Explanation: On the process tab of your build definition expand the Automated Testing section under Basic and make sure the TestSettings File is pointin... [More]
I don't want Entity Framework code counted in code coverage. 29 September 2011 Donovan-Brown Work (0) Problem: The code generated by the Entity Framework is distorting my code coverage numbers. Solution: Add a Code Generation Item and add the [DebuggerNonUserCode] attribute to the generated classes. Explanation: As I described in a previous post here the [DebuggerNonUserCode] hides the code ... [More]
I have code I don't want used to calculate code coverage or code metrics 02 September 2011 Donovan Work (0) Problem: I have code that I don't want to be calculated in my code coverage results and/or my code metrics. Solution: Apply the GeneratedCodeAttribute, DebuggerNonUserCode or DebuggerHidden attributes to the specific code. Explanation: Genera... [More]
I can't get Code Coverage to work on IIS7 13 January 2011 Donovan-Brown Work (0) How to get code coverage on IIS7. [More]
Lap around dev vsts 2010 dev tools 02 June 2010 Donovan-Brown Work (0) Lap around the VSTS Dev Testing Tools [More]