Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 a corresponding unit test library. Both target WinRT (not the .NET framework).

I can run unit tests fine, but when I attempt to "Analyze code coverage for all tests", the output window comes up with the results of the rebuild, and that's it. The Code Coverage Results window is all grayed out.

From reading on the web, some have alluded to the idea that code coverage is not enabled for WinRT assemblies, but I cannot confirm. I have also tried creating a .testsettings file, like was needed in VS2010 and explicitly turn on code coverage, and I got the same results.

Can anyone confirm or deny that code coverage is not available for WinRT-targeted assemblies, in VS2012 RTM?? I'm just trying to figure out if I'm missing some setting - or if it's not possible.

like image 551
Robert Seder Avatar asked Aug 19 '12 19:08

Robert Seder


1 Answers

It's not possible at this stage due to the sandboxed nature of WinRT apps.

P.S. It's on the list of things the team is looking to resolve in the near future (no, I don't have a timeframe for it)

like image 174
Richard Banks Avatar answered Oct 13 '22 00:10

Richard Banks