Ticket T481192
Visible to All Users

CodeRush for Roslyn TestRunner can't start the mspec tests

created 8 years ago

[DevExpress Support Team: CLONED FROM T332664: Test Runner does not run MSpec tests]
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

Comments (3)
DevExpress Support Team 8 years ago

    Hi Lars,

    I didn't manage to reproduce the issue. This is a screencast I captured on my side using CodeRush for Roslyn v16.2.4 and Machine.Specifications v0.11.0.
    Please describe the issue in greater detail and specify the CRR build version you are using. If it is possible, provide a code sample to us.

    In addition, note that you can mark the ticket private if required.

      Hi Igor,

      thank you for your screencast.

      I have attached an example with 2 projects.
      Maybe the problem is that the projects are signed. But this is important for me.

      The TestResult is always

      Test started…
       Summary: Passed: 0, Failed: 0, Ignored: 0
      Duration: 2.4613

      What can I do?

      DevExpress Support Team 8 years ago

        Lars,

        Thank you for providing the sample code.
        Now I've managed to reproduce the described behavior on my side. Please give us some time to thoroughly research it.

        This ticket will be updated automatically in case we have any result.

        Answers approved by DevExpress Support

        created 8 years ago (modified 8 years ago)

        Hi Lars,

        We've investigated the issue and have found the cause of it.
        Accordingto this issue on github.com, Machine.Specification developers are working on separate packages to make them compatible with strongly signed assemblies.
        We've tried to run the tests in the sample project you sent us using the Machine.Specifications-Signed and Machine.Specifications.Should-Signed packages and everything works as expected on our side.
        So, this seems to be not an issue in our Test Runner, but specifics of this unit testing framework.
        I suggest you try using the aforementioned packages and let us know your results.

          Comments (1)

            Hi Igor,

            thank you.
            It would be great if CodeRush could show a Warning message when using not the right nuget package/DLL.

            So I build the mspec nuget package with the strong name. I don't know why the developers of mspec didn't it.
            I attached it so it is helpful for other mspec user.

            Regards, Lars

            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.