-
Notifications
You must be signed in to change notification settings - Fork 106
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
NUnit Test Discoverer 3 in MS VisStudio 2015 gets a null object reference error when discovering #769
Comments
@john-sc I'm transferring this issue to the nunit3-vs-adapter repo (the original repo is for the NUnit 2 adaper). |
@john-sc What happens if you upgrade to 3.17 ? |
Hi, thank you. I found my problem. I had version 3.15 installed using nuget package manager. And 3.17 installed using tools, extensions. I disabled the 3.17 and that fixed it. My error. Regards, John
… On 16 Jul 2020, at 07:27, Terje Sandstrom ***@***.***> wrote:
@john-sc What happens if you upgrade to 3.17 ?
If it is still there, can you upload a small repro?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I have same problem. please help |
I have the same issue, it is extremely frustrating. |
@prithvivinayak1 @justcode411 John-sc solved #769 (comment) his problem by ensuring he didn't have any VSIX based adapters installed at the same time. Can you check the same? If not, please upload a small repro. Also, please set Verbosity to 5 (in a runsettings file), and enable the DumpXmlTestDiscovery. |
Hi Thank you. I found my issue. 3.16 and 3.17 was installed.i disabled Nunit3TestAdapter in Tools->Extensions and Updates. |
@justcode411 I would assume you have the same problem, nice if you can confirm. |
Hi, I experience the same issue even though it is marked as closed. My setup is VS 2015 Upd3, project targeting .NET 4.6. Test project was created with the NUnit VS templates add-on. Using nUnit v3.12, nUnit test adapter v3.17 through the nuget package only. |
@svetvasilev Have you tried deleting the VSTest vsix cache ? See #261 (comment) |
@OsirisTerje - tried this one with some mixed outcome. Cleaned the cache several times as per #261 but the behaviour prevailed. Then I noticed that for some strange reason the NUnit adapter VS extension was still hanging around, though disabled. I uninstalled it then for good (for second time), restarted VS and then the adapter seemed to be loaded correctly and tests are possible to execute. |
@svetvasilev Is this limited to ONE specific machine, or does it also happen on other machines, e.g. your colleagues machines ? |
@OsirisTerje - will reach out to others from the teams to try this out as the tests are for projects that only I work with. Havent tried it on buid server as of now either. |
Using MS Visual Studio Professional 2015
Visual c# 2015
Nunit version 3.12.0
Nunit3 version 3.15.1
I open a solution and it works. Tests are discovered.
I make any change to a line of code and rebuild.
I get
An exception occurred while test discoverer 'NUnit3TestDiscoverer' was loading tests. Exception: Object reference not set to an instance of an object.
The text was updated successfully, but these errors were encountered: