Bug Report T957092
Visible to All Users

Test Runner does not work in VS 2019 16.9.0 Preview 2.0

created 4 years ago

With the latest preview release of VS 2019 16.9.0 the ability to run unit tests does not work anymore.
Steps:

  1. Create a new test project using `Unit Test` for C# and .NET Framework 4.7.2

  2. In the auto-generated test file go to the only test method it has.

  3. Click the test icon next to the test method and select either `Run Test` or `Debug Test`.

  4. The execution fails
    Failed: The test runner process has been unexpectedly closed. It is possible when an unhandled exception (like StackOverflowException, MemoryOverflowException, etc.) was thrown.
    Failed: UnitTestProject1.UnitTest1.TestMethod1
    Failed: The test runner process has been unexpectedly closed. It is possible when an unhandled exception (like StackOverflowException, MemoryOverflowException, etc.) was thrown.
    unittestproject1\unittest1.cs(10, 9) : UnitTestProject1.UnitTest1.TestMethod1

  5. Right click inside the test method and instead use Visual Studio's `Run Test` menu item and it runs correctly.
    Note: Loading the same solution in the parallel installation of VS 2019 16.8.3 works correctly so something broken in 16.9 Preview 2

CodeRush version is 20.2.4.0

Answers approved by DevExpress Support

created 4 years ago

We have addressed the issue described in this ticket and will include a fix in our next maintenance update. Should you need to apply our fix prior to official release, you can request a hotfix here.

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.