To run coverage from the editor
  1. Choose a test class or a test method.
  2. Click the corresponding side bar mark in the left gutter.
  3. In the context menu, choose Cover with dotCover:
    Cover with dotCover
    Image 1:
  4. The Unit Test Sessions window opens and unit tests are running. After this process is completed, coverage analysis will run and coverage snapshot will be displayed in the new Coverage tab.
To run coverage from the Unit Test Sessions window
  1. Open the Unit Test Sessions window by choosing ReSharper | Windows | Unit Test Sessions or pressing Ctrl+Alt+R. If you haven't yet arranged a test session, see Running and Debugging Unit Tests for guidelines.
  2. Select a node in the tree view of the Unit Test Sessions window, and click Cover Selected Tests Cover Selected Tests
    Image 2: in the toolbar.
To run coverage from the Solution Explorer window
  1. You can get coverage reports for entire solution or for tests from a certain scope. Depending on your goals do one of the following:
    • On the main menu, choose ReSharper | Unit Tests| Cover All Tests from Solution. All tests will be covered.
    • Select a node in the Solution Explorer window. On the main menu, choose ReSharper | Unit Tests | Cover Unit Tests. The tests from chosen scope will be covered.
  2. One way or another, the Unit Test Sessions window opens and unit tests are running. After this process is completed, coverage analysis will run and coverage snapshot will be displayed in the new Coverage tab.
    Coverage
    Image 3: