-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail to run tests in VS2017 15.6 #476
Comments
This is #296, fixed in #454. We'll be releasing with the fix very soon. If you want to help us be sure we've covered your scenario (which we appreciate!), you can merge this with your nuget.config and try version <?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="NUnit prerelease" value="https://www.myget.org/F/nunit/api/v3/index.json" />
</packageSources>
</configuration> |
I can confirm that using version 3.10.0-dev-00820 the issue is gone and my tests are running again. |
Great, thank you! |
Thanks for getting back to us @twenzel. The release version of the adapter should be out any day now. |
Hi I am still facing the same issue: I am using latest VS 2017 and latest 3.x Nunit and Nunit Adapters... Is this a wrong topic I am updating? Thank you |
Which version of the adapter and NUnit itself are you using? |
Hi Osiris Thank you for your reply. Truthfully i am almost at the "give up" point... :( Here the answers for each question: Which version of the adapter and NUnit itself are you using?
Note - i am very new to this. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again. And now my previously written solution i was learning with and developed on my own - also not working with the similar issue. Thank you very much! |
Yes, Please upload the solution, and we can have a look No need to give up :-) |
Osiris Here it is. This is the Solution i was learning by myself and it was working and running fine. SeleniumFirstA.zip Thank you! |
Osiris Here is a list of few zip files as i could not upload them as 1 zip file - too large. This is the Solution that cam from VS 2013 and Nunit 2.x.. Please let me know what else needed. Allergy_Console.zip Thank you |
Hi Terje
This ticket is closed. Shall i open a new ticket or is it ok for you to
look at it as Closed?
Thank you
Andrew
…On Sun, Jun 3, 2018 at 5:25 PM, Terje Sandstrom ***@***.***> wrote:
Yes, Please upload the solution, and we can have a look No need to give up
:-)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#476 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APKHGZMQXD3JvWIHM7ODYHqmVJ5S84sVks5t5FRJgaJpZM4Sf-z2>
.
|
I'll look at it as is, no problem. |
Thank you Terje!
Andrew
…On Mon, Jun 4, 2018 at 2:23 PM, Terje Sandstrom ***@***.***> wrote:
I'll look at it as is, no problem.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#476 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APKHGcwicxWLq9s3PdU2XFHdVTid_gARks5t5XsygaJpZM4Sf-z2>
.
|
@andrewkhomski you say that your tests are using NUnit 2.x, but you are using the NUnit 3 adapter. If so, that doesn't work, you need to use the NunitTestAdapter, not the Nunit3TestAdapter. |
Hi Prouse Thank you for your response. Actually what i reported, that the Solution "SeleniumFirstA.zip" was developed by myself (just a learning exercises) on VS 2017 with Nunit v.3.10.1. And it used to work untill i started reconfiguring and making updates to the next Solution: "SeleniumTest.zip". [6/4/2018 2:43:34 PM Informational] ------ Discover test started ------ Appreciate your help! |
Good Day Sorry to bother you Rob and Terje. I also uploaded the same files into Github if needed. At this point i understand you are busy with other problems. For us here is the issue with this configuration (my opinion) and this is why Tests won't run probably. Not asking for solution if needed, but do you know of any workarounds so we can progress with developing new or updating existing Tests. Thank you very much! |
Sorry it takes some time. Is the github upload complete? so I can just clone and run ? That would make it simpler to check it. |
Yes.
Here is the link to the github:
https://github.com/andrewkhomski/VS2017-Nunit-MS-TICKET.
It has 2 Solutions.1) SeleniumFirstA - it is my learning Solution that i
have created in VS 2017 with Nunit 3.x and it worked fine.2) SeleniumTest -
it is a solution written by previous developer in VS 2013 and Nunit 2.x.
This solution gives me the errors i have mentioned earlier when i try to
run it on my VS 2017 and Nunit 3.x. And while i tried all kind of
recommendations, now my SeleniumFirstA solution also not working
Thank you
Andrew
…On Thu, Jun 7, 2018 at 2:46 PM, Terje Sandstrom ***@***.***> wrote:
Sorry it takes some time. Is the github upload complete? so I can just
clone and run ? That would make it simpler to check it.
What is the github repo address?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#476 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APKHGalSObBP3q8JNneqmRWHIuP6olCWks5t6XUFgaJpZM4Sf-z2>
.
|
Thanks. Sorry to be a bit picky, but could you upload it all unzipped ? Then it is also easier to make changes if needed, and easier to run it from the clone |
Thank Terje!
Will do.
Andrew
…On Thu, Jun 7, 2018 at 4:26 PM, Terje Sandstrom ***@***.***> wrote:
Thanks.
Sorry to be a bit picky, but could you upload it all unzipped ? Then it is
also easier to make changes if needed, and easier to run it from the clone
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#476 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APKHGQoFj9NZtp0l06efe_6rgbfZD14Uks5t6YxcgaJpZM4Sf-z2>
.
|
I am getting this error even when i set to test setting = 86. I have
uninstalled and installed back the Chrome webdriver and still the same
issue.
It used to work as fine as in your screen shot..
Message: System.InvalidOperationException : session not created exception
from tab crashed
(Session info: chrome=66.0.3359.181)
(Driver info: chromedriver=2.39.562718
(9a2698cba08cf5a471a29d30c8b3e12becabb0e9),platform=Windows NT 10.0.10586
x86_64) (SessionNotCreated)
TearDown : System.NullReferenceException : Object reference not set to an
instance of an object.
…On Thu, Jun 7, 2018 at 4:32 PM, Terje Sandstrom ***@***.***> wrote:
Ran the first solution, and it worked as it should:
[image: bilde]
<https://user-images.githubusercontent.com/203432/41124552-a187ce8e-6aa2-11e8-961c-6c83af99062a.png>
Make sure you have the test settings to run in x86 though.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#476 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APKHGa1ENFb1Xy-0qgTOI2ZNZVuZ-Jtsks5t6Y3ngaJpZM4Sf-z2>
.
|
Unzipped and it is there now.
Thank you again Terje!
Andrew
…On Thu, Jun 7, 2018 at 4:26 PM, Terje Sandstrom ***@***.***> wrote:
Thanks.
Sorry to be a bit picky, but could you upload it all unzipped ? Then it is
also easier to make changes if needed, and easier to run it from the clone
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#476 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APKHGQoFj9NZtp0l06efe_6rgbfZD14Uks5t6YxcgaJpZM4Sf-z2>
.
|
Hi Terje Did you try to run the 2nd solution (the "migrated" one)? Please let me know if you need anything else. Thank you very much! |
Hello! The same happens to me. VS 2017 v15.7.3 csproj file with versions
Integration tests use base class with SetUp attribute located in Tests.Common project (which references NUnit of the same version). Target framework .NET 4.7.1, not Mono |
@ilog2000 Please also read through and check http://hermit.no/how-to-resolve-cases-of-visual-studio-no-tests-appearing/ |
@andrewkhomski Does the first solution work for you now? Is it only the 2nd solution that doesn't work? |
Hi Terje For the 1st solution (simple - the one i code): Message: Thank you! |
@OsirisTerje unfortunately not - this is a part of a company project under NDA. But I am close to revealing the root cause of this issue, and looks like this is not NUnit Adapter at all. Before leaving the office I found a version mismatch in Microsoft.Extensions.Primitives binding redirect in App.config. Will confirm tomorrow. |
Confirmed, the real issue I had is assembly version mismatch. We use some legacy classic .NET libraries, and target .NET Core 1.1 in our projects. But Tests.Common contained App.config with the following binding redirects
There was no build errors or warningns, but NUnit Adapter was unable to discover tests there. Having in mind this open issue #489 all becomes explainable. After setting redirect to 1.1.1.0 tests got discovered and everything works as expected. @OsirisTerje thank you for paying attention. |
Hi Terje Is solution provided by ilog2000 will work for me as well? Or it is a different issue and you still looking into this. Thank you |
I had the same issue. for me it was resolved by adding some package references in the csproj file. I found this thanks to the link posted by Terje (look at section 2.3) : |
Thank you very much Ruben!
The issue i have is a bit different. I think. But maybe i am mistaken.
However i will follow all the steps by the diagram and hopefully it will
resolve the problem.
Also logged a ticket with MS (no resolution yet though).
Thank you
Andrew
…On Mon, Jul 2, 2018 at 4:30 AM rubenVerschueren ***@***.***> wrote:
I had the same issue. for me it was resolved by adding some package
references in the csproj file.
I found this thanks to the link posted by Terje (look at section 2.3) :
http://hermit.no/how-to-resolve-cases-of-visual-studio-no-tests-appearing/
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#476 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APKHGRWfIXvhJBl_dPbtWdYactJELn7wks5uCdoHgaJpZM4Sf-z2>
.
|
I m getting same issue, what is the fix??? |
"I found this thanks to the link posted by Terje (look at section 2.3) : And if you don't find anything that matches, please upload a repro showing the issue you have. |
With NUnit 3.9 and the TestAdapter v3.9 the execution of tests within VisualStudio does not work anymore.
The text was updated successfully, but these errors were encountered: