Bug Report T919007
Visible to All Users

Test Runner – The Test Runner used with code coverage does not take into account the [ExcludeFromCodeCoverage] attribute

created 5 years ago (modified 5 years ago)

[DevExpress Support Team: CLONED FROM T334341: Code Coverage doesn't take into account the [ExcludeFromCodeCoverage] attribute]

Looks like the attribute still isn't taken into account when it is applied at the assembly level.

I have an utility project within my solution for which I don't want to write any tests, and hence I don't want it to show up in coverage. So I'm using ExcludeFromCodeCoverageAttribute on the whole assembly rather than on each type. Looks like the test runner doesn't get to it, despite the attribute being marked as applicable to assemblies.

Comments (1)
DevExpress Support Team 5 years ago

    David,

    Thank you for pointing this out to us.

    I have managed to reproduce the issue locally and passed this ticket to our R&D queue for further research. We will update this thread once we have any news.

    Answers approved by DevExpress Support

    created 5 years ago

    We have addressed the issue described in this ticket and will include a fix in our next maintenance update. To apply this solution before official release, request a hotfix by clicking the appropriate version link.

    Note: Hotfixes may be unavailable for betas/updates set for release within a week.

      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.