Bug Report T652158
Visible to All Users

NUnit + TestCases causes issues in test runner

created 7 years ago

Continuing from my previous bug report (T647768), I have further investigated the situation. Attached is a test project and these are the steps to reproduce:

* Open Visual studio 2017
* Drag .sln file into VS window
* Open TestRunner window
* Expand ClassLibrary1 -> ClassLibrary1 -> IndependentClass
* Click IndependentClass3(1, "hey") -- it works, goes to the code
* Run all tests by clicking the toolbar icon
* Click IndependentClass3(1, "hey") -- it doesn't work in this one or any other TestCase
* Open IndependentClass.cs
* Uncomment [TestCase(2, "extra") -- no need to save or build
* Go back to test runner -- the new testcase got added but all the other ones got duplicated (possible cause: spaces between parameters)

This also applies to tests in FloatTests and IntTests which are derived from BaseClass and inherit all its tests.

Comments (1)
DevExpress Support Team 7 years ago

    Hi Jorge,
    I have managed to reproduce the issue. Please give us some time to research the issue in detail.

    Answers approved by DevExpress Support

    created 7 years ago (modified 7 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.

      Comments (2)

        Works great! Liked the nice touch of having a menu to choose which instance of the TestCase I want to run.

        Thanks

        DevExpress Support Team 7 years ago

          You are welcome.

          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.