Bug Report T612943
Visible to All Users

Test Runner - It is impossible to run MSTests with the Visual Studio's 15.6.0 update

created 7 years ago (modified 7 years ago)

After upgrading to VS 2017 15.6.0, When trying to run tests from the test runner I get this error
Test started…
Method not found: 'Microsoft.VisualStudio.TestWindow.Extensibility.ITestContainer Microsoft.VisualStudio.TestWindow.Controller.ITestContainerProvider.FindTestContainer(System.String, System.Uri)'.

at DevExpress.CodeRush.TestRunner.MsTests15.DiscoveryOperation.<GetTestContainersFor>d__9.MoveNext()
   at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
   at DevExpress.CodeRush.TestRunner.MsTests15.DiscoveryOperation.<DiscoverInternalAsync>d__5.MoveNext()

Summary: Passed: 0, Failed: 0, Ignored: 0
Duration: 0.24 seconds

Tests *do* run when being ran from the native IDE Test Explorer

Comments (1)
DevExpress Support Team 7 years ago

    Hello Dan,
    Thank you for bringing our attention to this issue. We have managed to reproduce it and will do our best to fix it. You will be notified once we have done this.

    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.

      Show previous comments (10)

        Upgrading to 17.2.7 actually caused this error to occur for me. I rolled back to 17.2.6, and everything works. I am running Visual Studio 15.5.2.

          Actually, in my case the missing method is GetTestContainer, not FindTestContainer. So apparently Microsoft must have renamed that method for Visual Studio 15.6.

          DevExpress Support Team 7 years ago

            Hi Joe,

            To process your comment more efficiently I've created a separate ticket on your behalf: Test Runner - MSTest tests are not run in Visual Studio's 15.5.2. It has been placed in our processing queue and will be answered shortly.

            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.