Bug Report T969017
Visible to All Users

Test Runner - Test Runner fails to run tests in the Universal Windows Test Project

created 4 years ago

I've got a Universal Windows Test Project using MSTest, built straight from the Visual Studio 2019 UWP Test Project Template. When I run using the Visual Studio Test Runner, it works fine, and is green. However, when I use the Code Rush Test Runner, it fails before starting to execute any of my test code. I have also tried with other test frameworks (xUnit, nUnit), and they also fail under Code Rush. I have all options for Supported Frameworks selected, except for MSpec.

The specific error I'm getting is: "Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException: No suitable test runtime provider found for this run." (Full output below)

Any suggestions on how to proceed? Code Rush is my desired tooling for tests - switching back and forth is super frustrating! I should note that this has been going on for quite some time, I think more than a year, so it's not a new break in 20.2.7. I am current on all tools involved.

Thanks much!
-Eric.

Test Runner Output:

Test started…
Error! Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException: No suitable test runtime provider found for this run.
at Microsoft.VisualStudio.TestPlatform.Client.TestPlatform.ThrowExceptionIfTestHostManagerIsNull(ITestRuntimeProvider testHostManager, String settingXml)
at Microsoft.VisualStudio.TestPlatform.Client.TestPlatform.CreateDiscoveryRequest(IRequestData requestData, DiscoveryCriteria discoveryCriteria, TestPlatformOptions options)
at Microsoft.VisualStudio.TestPlatform.CommandLine.TestPlatformHelpers.TestRequestManager.DiscoverTests(DiscoveryRequestPayload discoveryPayload, ITestDiscoveryEventsRegistrar discoveryEventsRegistrar, ProtocolConfig protocolConfig)
at Microsoft.VisualStudio.TestPlatform.Client.DesignMode.DesignModeClient.<>c__DisplayClass24_0.<StartDiscovery>b__0()
Failed: The test runner process has been unexpectedly closed. It is possible when an unhandled exception (like StackOverflowException, MemoryOverflowException, etc.) was thrown.
Summary: Passed: 0, Failed: 0, Ignored: 0
Duration: 0.57 seconds

Show previous comments (10)

    This worked perfectly! Thanks much,
    -Eric.

    DevExpress Support Team 4 years ago

      Hi Eric,

      You're welcome! Thank you for informing us. We will continue working to fix issues with debugging.

      DevExpress Support Team 4 years ago

        Hi Eric,

        We fixed the issue with debugging. Please try to install the build from the link below and let me know your results.

        DevExpress.CodeRush-20.2.8.21077.vsix

        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.

          Comments (2)

            This worked perfectly, thanks!
            -Eric.

            DevExpress Support Team 4 years ago

              Hi Eric,

              Thank you for informing us.
              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.