Bug Report T566340
Visible to All Users

Test Runner - Running all tests in a solution with multiple projects using the MS Test framework is not working as expected

created 7 years ago

- Start Visual Studio 2017
- Load solution with multiple projects
- Right-click on solution
- Click "Run Tests"

It compiles the solution and then writes in the Output windows (Test Runner scope):
Test started…
A discovery request is already in progress. Only one active discovery request is supported.
   at Microsoft.VisualStudio.TestPlatform.Client.TestRunnerServiceProxy.DiscoverTests(IEnumerable`1 sources, String settings, Int64 frequencyOfDiscoveredTestsEvent, TimeSpan discoveredTestEventTimeout)
   at Microsoft.VisualStudio.TestPlatform.Client.TestRunnerServiceClient.<>c__DisplayClass5_0.<DiscoverTests>b__0(TestRunnerServiceProxy proxy)
   at Microsoft.VisualStudio.TestPlatform.Client.TestRunnerServiceClient.InvokeTestRunnerServiceAction(Boolean forceX86Discoverer, Action`1 action)
   at Microsoft.VisualStudio.TestPlatform.Client.TestRunnerServiceClient.DiscoverTests(IEnumerable`1 sources, String settings, Int64 frequencyOfDiscoveredTestEvent, ITestCaseDiscoveryLog testCaseDiscoveryLog, TimeSpan discoveredTestEventTimeout)
   at Microsoft.VisualStudio.TestPlatform.Client.Rocksteady.RocksteadyDiscoveryManager.DiscoverTestsForTestRun(DiscoveryCriteria discoveryCriteria, ITestDiscoveryEventsHandler eventHandler)
   at Microsoft.VisualStudio.TestPlatform.Client.Rocksteady.RocksteadyDiscoveryManager.DiscoverTests(DiscoveryCriteria discoveryCriteria, ITestDiscoveryEventsHandler eventHandler)
   at Microsoft.VisualStudio.TestPlatform.Client.DiscoveryRequest.Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.IDiscoveryRequest.DiscoverAsync()
   at DevExpress.CodeRush.TestRunner.MsTests15.DiscoveryOperation.<DiscoverInternal>d__2.MoveNext()

Show previous comments (9)
DevExpress Support Team 7 years ago

    Hi Jim,

    Thank you for letting us know that the problem went away with this fix. We are happy to hear that.

    MN MN
    Marcus Nilsson 7 years ago

      I use 17.2.3 together with VS 2017 15.5.0 and still problem.

      Right click solution, "Run tests" -> it compiles the solution and writes to Test runner output window: "Test started…", but nothing more happens.

      DevExpress Support Team 7 years ago

        Hello Marcus,
        The issue with MSTests and the Visual Studio 15.5.0 update was already reported . We are working on the fix now. Please track this thread: Test Runner does not work with VS 2017 15.5 updateto be notified about our progress.

        Answers approved by DevExpress Support

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

          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.