Bug Report T756057
Visible to All Users

Code Coverage – The Code Coverage window does not display the hierarchical tree of classes

created 6 years ago

[DevExpress Support Team: CLONED FROM T746846: Unit Testing - Code Coverage does not work for MSTest v1 under Visual Studio 2019]
I have installed v19.1.5 and while I do now see code coverage run without errors and see some code coverage information (in summary stats and exported reports), the code coverage window does not display the hierarchical class tree, or the actual code under coverage.  There are no filters applied to the coverage view that could hide the class.  See attached screenshot.

I have tried generating coverage using both MsTest v1 and v2 with same result.

I was able to fix my coverage tree/code visibility issue by entering text ('qqq') into the 'Search' box at the top, and then deleting the search text. The code tree immediately became visible again.  I saw this behavior in two separate solutions (Production code, and a test project I just created today) .  It's still working when I close and reopen the solution in Visual Studio  (w/o having to enter anything the search text).  Anyway, thought you should know what happened.

Comments (1)
DevExpress Support Team 6 years ago

    Hi,
    Thank you for this report. I have reproduced this issue in this scenario:

    1. Run tests with coverage. Wait until coverage is collected and Code Coverage Window is populated.
    2. Type something in the search text box.
    3. Close Visual Studio.
    4. Open the same solution again and run tests with coverage.
    5. The Code Coverage Window stays blank.
      As soon as we fix the problem, we will let you know of our results. Please bear with us.

    Answers approved by DevExpress Support

    created 6 years ago

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.