How to cover extensions (COM add-in) for MS Office-based applications
By default dotCover use dotnet core profiling API, while MS Office-based applications do not support it.
Try getting the coverage as follows:
-
Press Ctrl+Shift+Alt and while holding it, run coverage analysis in the Unit tests session;
-
The Coverage Configuration window will be opened.
-
In the Coverage Configuration window, press Ctrl+Alt+Shift+F11 to enable expert options (Manually radio button should be chosen to open the expert options)
-
In the Expert Options window, set Control Kind to Only first process use core API
-
Save and start the coverage
-
The coverage control window should appear with the
Outlook.exe
(or another required) process. Click Get snapshot when tests are done.
Please note! Control Kind setting is saved on the unit tests session basis, so it should be configured again in a new unit tests session.
Please sign in to leave a comment.