Bug Report T838293
Visible to All Users

Test Runner does not recognize tests with the WpfTheory attribute

created 5 years ago

xUnit can be extended by using custom (inherited) attributes for Fact or Theory. There are some examples an the xUnit site for this.
I'm using a WpfTheory attribute (inherited from Theory) to start my tests in a STA thread to be able to create WPF controls in the tests.
It seems that the CodeRush test runner does not find this test methods and not identify them as test methods.
Is there an alternative way to mark the methods as tests?

Comments (1)
DevExpress Support Team 5 years ago

    Hi Steffen,

    Thank you for pointing out this issue.

    I have downloaded the STA Examples for xUnit tests, which contain a test with the WpfTheory attribute. CodeRush Test Runner finds this test, shows an icon for it, and displays it in the Test Runner window on my side. But an attempt to run this test is unsuccessful and it is not started. I have recorder a screencast that illustrates this behavior. We will fix this issue in the context of this ticket.

    Please clarify whether you have same behavior or whether CodeRush Test Runner does not recognize tests with the WpfTheory attribute at all on your side.

    Answers approved by DevExpress Support

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