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)
-
0
Hi,
Can you see unit tests in VS Test explorer ? Have you updated any nuget package recently ?
Thanks.
-
0
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
-
0
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.
-
0
Yes it is the same. Anything to check more? Thanks
-
0
Hi,
I couldn't think of anything else, please share your project with us.
Thanks.
-
0
Hi Ismail, I sent you the email last week. Whenever you have time to check it pls.
Thanks
-
0
Hi,
Really sorry for the delay. I will get back to you today or tomorrow.
Thanks for your patience.
-
0
I totally understand. There is even an older email if possible to check it also whenever you have time.
Thanks a lot
-
0
I totally understand. There is even an older email if possible to check it also whenever you have time.
Thanks a lot
-
0
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.
-
0
Thanks, that was it :)