Bug Report T332664
Visible to All Users

Test Runner does not run MSpec tests

created 9 years ago

Open and run the tests in the attaches solution. The tests in "Machine.VSTestAdapter.Specs" should pass, but when run with the CodeRush unit test runner - they fail. They work fine in Resharper and using the MSpec command line. See attached screenshot.

Show previous comments (6)
AE AE
Alex Eg (DevExpress) 9 years ago

    Hi Ivan,
    Thank you for the solution. I have managed to reproduce the issue, and we are researching it. Meanwhile, I have noticed that failing tests are passed if they are running one by one separately. It makes me think that test cases aren't isolated properly (using static members, which can be affected by the previously running test).

      I don't think it's a problem with test isolation, because I am seeing this problem across wide range of projects (some open source, some internal) and only with the CodeRush runner. Seems to be triggered by the use of Machine.Fakes.

      AE AE
      Alex Eg (DevExpress) 9 years ago

        Ivan,
        Thank you for the update.

        Answers approved by DevExpress Support

        created 9 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)

            I have installed the nuget-package Machine.Specifications v0.11.0, but the Coderush Roslyn TestRunner can't start the tests?

            What should I have to do to use mspec?

            Regards, Lars

            DevExpress Support Team 8 years ago

              Hi Lars,

              Let's discuss the issue you're talking about in the context of the separate ticket I've created on your behalf (T481192: CodeRush for Roslyn TestRunner can't start the mspec tests).
              The ticket 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.