Base solution for your next web application
Open Closed

Tests are not running #2860


User avatar
0
bilalhaidar created

Hello, Is there anything special to run the tests?

Few weeks ago I was able to run them normally. Today, I added a new Test class and the solution compiles. When I hit "Run Tests" the solution builds successfully but tests are not run.

Any idea?

Thanks


11 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Can you see unit tests in VS Test explorer ? Have you updated any nuget package recently ?

    Thanks.

  • User Avatar
    0
    bilalhaidar created

    I cannot see the Tests no.

    I recently moved on to v3.3.0 of Abp. That's all.

    Any idea what to do?

    Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Can you compare your test project's packages config with this one <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/blob/dev/src/Tests/MyCompanyName.AbpZeroTemplate.Tests/packages.config">https://github.com/aspnetzero/aspnet-ze ... ges.config</a> ? Especially for xunit packages.

    If it does not work, please send your project to us.

    Thanks.

  • User Avatar
    0
    bilalhaidar created

    Yes it is the same. Anything to check more? Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I couldn't think of anything else, please share your project with us.

    Thanks.

  • User Avatar
    0
    bilalhaidar created

    Hi Ismail, I sent you the email last week. Whenever you have time to check it pls.

    Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Really sorry for the delay. I will get back to you today or tomorrow.

    Thanks for your patience.

  • User Avatar
    0
    bilalhaidar created

    I totally understand. There is even an older email if possible to check it also whenever you have time.

    Thanks a lot

  • User Avatar
    0
    bilalhaidar created

    I totally understand. There is even an older email if possible to check it also whenever you have time.

    Thanks a lot

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I noticed your old email today and replied it as well. It seems like you have below assembly redirect in your test project's app.config and it causes the problem. Removing it worked for me. You need to make a clean solution and then build solution to see unit tests.

    <dependentAssembly>
        <assemblyIdentity name="xunit.core" publicKeyToken="8d05b1bb7a6fdb6c" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.2.0.3545" newVersion="2.2.0.3545" />
    </dependentAssembly>
    

    Thanks.

  • User Avatar
    0
    bilalhaidar created

    Thanks, that was it :)