WinRT Applications
Ctrl+Alt+K K
In Visual Studio:
ReSharper_CoverApplication
In dotCover standalone application:
WinRT applications are applications that use Windows Runtime framework. More specifically, these are Windows Store and Universal Windows Platform (UWP) applications.
With dotCover, you can run coverage analysis for WinRT applications that have PDB information.
Note that dotCover is unable to analyze a UWP application if it uses .NET native tool chain. To run coverage analysis for such an application, you should disable the Compile with .NET Native tool chain option in Visual Studio (via the menu ) and rebuild the project.
To start a coverage run for a WinRT application
- Do one of the following:
In Visual Studio, press Ctrl+Alt+K K or choose
from the main menuIn dotCover standalone application, press Ctrl+Alt+K K or choose
in the menu.
In the Coverage Configuration dialog that appears, choose WinRT Application.
In the Package selector, choose the application that you want to run.
- Optionally, select the Advanced check box to configure additional settings:
Click Edit Symbol Search Policy to specify where to search for PDB information.
Click Edit Filters to view existing and add new coverage filters. Note that the filters you add with this button are only applied to the current session.
- Click Run. dotCover will open the Coverage Controller dialog and then
run the selected application.
If the Collect profiling data from start check box was selected, the coverage run starts immediately. Otherwise, dotCover waits until you click Start in the Coverage Controller dialog. When the coverage run is started, you can record code coverage.