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:

  1. Press Ctrl+Shift+Alt and while holding it, run coverage analysis in the Unit tests session;

  2. The Coverage Configuration window will be opened.

  3. 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)

  4. In the Expert Options window, set Control Kind to Only first process use core API

  5. Save and start the coverage

  6. 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.

0 out of 0 found this helpful

Please sign in to leave a comment.

Have more questions?

Submit a request