BullseyeCoverage Up Contents Search

Universal Windows Platform Apps

Universal Windows Platform (UWP) apps run in a sandbox that prevents BullseyeCoverage from updating the coverage file directly. Therefore, BullseyeCoverage uses the small footprint run-time configuration ordinarily used for embedded systems.

Saving Coverage

Add a call to cov_dumpData into your program. For example:

void App::OnSuspending(Object^ sender, SuspendingEventArgs^ e)
{
    ...
    #if _BullseyeCoverage
        cov_dumpData();
    #endif
}

Explicitly calling cov_dumpData is only needed in UWP EXEs. UWP DLLs automatically call cov_dumpData upon loading.

Function cov_dumpData writes a file named BullseyeCoverage.data-n in the temporary directory, where n varies between runs. You can locate these files by searching your AppData folder.

C:\>cd %LOCALAPPDATA%
C:\Users\user\AppData\Local>dir /b /s BullseyeCoverage.data*
C:\Users\user\AppData\Local\...\Temp\BullseyeCoverage.data-232000968

If you find no file named BullseyeCoverage.data*, look for an error message in the debugger output window, or in a file named BullseyeCoverageError.txt also located somewhere in the application data directory.

C:\Users\user\AppData\Local>dir /b /s BullseyeCoverageError.txt

Use command covpost to process the BullseyeCoverage.data files.

C:\Users\user\AppData\Local>cd ...\Temp
C:\Users\user\AppData\Local\...\Temp>covpost BullseyeCoverage.data*

metro style apps metro-style apps

Updated: 16 Jun 2021