Is code coverage available in VS2012 for metro style apps?

I am using Windows 8 Pro and Visual Studio 2012 Ultimate (both RTM).

I create a Metro-style class library, and then the corresponding unit test library. Both target WinRT (not the .NET framework).

I can perform unit tests normally, but when I try to “Analyze code coverage for all tests”, the output window displays the results of the recovery and this. The Code Coverage Results window is grayed out.

From reading on the Internet, some cite the idea that code coverage is not included for WinRT builds, but I cannot confirm. I also tried to create a .testsettings file as needed in VS2010, and explicitly enable code coverage, and I got the same results.

Can someone confirm or deny that code coverage is not available for WinRT-oriented assemblers in RTM VS2012? I'm just trying to find out if any setting is missing, or if this is not possible.

+5
source share
1 answer

This is not possible at this stage due to the isolation of WinRT applications.

PS This is on the list of things that the team wants to solve in the near future (no, I don’t have a time frame for this)

+5
source

All Articles