Bug Report T287523
Visible to All Users

Test Runner - Disable menu items to prevent execution of ignored tests

created 9 years ago

I can't manually run a NUnit test flagged with [IgnoreAttribute]. Even if I click icon next to method (Run or Debug)  it won't run it and declare it as skipped.

Comments (3)
DevExpress Support Team 9 years ago

    Hi Miha,

    Thank you for your note. We have discussed this problem and decided to hide the "Run" & "Debug" options from the icon menu for ignored tests. This decision is related to the restrictions of the Test Frameworks, which consist in that running tests marked with IgnoreAttribute are unavailable.

    M M
    Miha Markic - DevExpress MVP 9 years ago

      I'd prefer the other way round though - to run those when explicitly hit run/debug. I think of Ignore attribute as valid when running a batch of tests but not when wanting a single test to run.
      Either way it is not a big deal.

      DevExpress Support Team 9 years ago

        Miha,

        We also considered this scenario when discussing your inquiry. Though at first glance, we thought it would be convenient for users, we then understood that the implementation of this functionality would require introducing a kind of hack that can cause unpredictable results and instability in the mechanism of running tests. It would be especially evident if we try to apply it to the whole list of supported test environments.

        This is the reason that forces us not to move in this route, but hide the "Run test" and "Debug test" options in the icon menu instead, not to confuse our users. As soon as we introduce these changes, we will update this thread.

        Answers approved by DevExpress Support

        created 9 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.