question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

An exception occurred while test discoverer 'NUnit3TestDiscoverer' was loading tests. Exception: Object reference not set to an instance of an object.

See original GitHub issue

Using MS Visual Studio Professional 2015 Visual c# 2015 Nunit version 3.12.0 Nunit3 version 3.16 .Net framework 4.5.2 I opened a solution and it works. Tests are discovered. I made some changes to a line of code and rebuild. I got An exception occurred while test discoverer ‘NUnit3TestDiscoverer’ was loading tests. Exception: Object reference not set to an instance of an object. If i change default processor architecture(Test->Test settings ) from x86 to x64 or x64 to x86 it will work once. Same error occurs during the next rebuild

Annotation 2020-07-20 151745

-``

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
felipepessotocommented, Sep 17, 2020

It is a known issue. Try to downgrade to https://github.com/nunit/nunit3-vs-adapter/releases/tag/V3.16.1

image

0reactions
OsirisTerjecommented, Dec 2, 2020

@shahnawazm786 You’re using the NUnit 2 testadapter. That will not work with NUnit 3.

Read more comments on GitHub >

github_iconTop Results From Across the Web

An exception occurred while test discoverer ' ...
I've installed the NUnit v3.12, Selenium WebDriver v3.141, NUnit3TestAdapter v3.17 extensions. If I'm unable to download the Browser Driver why ...
Read more >
An exception occurred while test discoverer ' ...
An exception occurred while test discoverer 'NUnit3TestDiscoverer' was loading tests. Exception: Object reference not set to an instance of ...
Read more >
NUnit exception occurred while test discoverer was loading ...
An exception occurred while test discoverer 'NUnit3TestDiscoverer' was loading tests. Exception: Could not load file or assembly ...
Read more >
Developers - An exception occurred while test discoverer ...
An exception occurred while test discoverer 'NUnit3TestDiscoverer' was loading tests. Exception: Object reference not set to an instance of ...
Read more >
Null Reference Exception: Object Reference Not Set to an ...
I'm having issues with having my character pick up items due to the Null Reference Exception: Object Reference Not Set to an Instance...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found