Object reference not set to an instance of an object
Opened this issue · 15 comments
I've installed the this plugin before installing the OpenCover application and i'm receiving this message all the time i try to execute the unit tests in OpenCover Test Explorer.
I've tryed to execute the Visual Studio in Administrator mode but don't works again.
Hi @mvleandro, you can still set the path of OpenCover if you installed the plugin first: this page shows how to configure it: https://github.com/OpenCoverUI/OpenCover.UI/wiki/Release-Notes#new-settings-page
That should fix the issue
I have the same problem and I set the path for opencover-console.exe and for nunit3-console.exe in visual studio tools-->options-->OpenCoverUI.
Can you see any more details or a stack trace in the output window? It has an OpenCoverUI option in the combobox that shows OpenCoverUI details and errors.
@pver thanks for your help.
I have this configuration in my VS2015:
I have this error:
And this is my output window
Just it tells me that I have 13 tests, but no errors.
Hi @ComptonAlvaro , this might be an issue in combination with a newer version of OpenCover, I'll see if I can reproduce this issue with the version you are using
Thanks for your help.
By the moment could you tell me what version of OpenCover could I use to run the the tests?
EDIT: I have tried with the version 4.6.166 (2015-07-18) and I have the same problem.
Hmm, that's strange, I use version 4.6.192 without a problem, so it's probably something else. Are you using the same nunit version in your unit tests as the version you configured in the configuration options?
Could you create a small test project you could share that reproduces the issue?
I have tried to uninstall all nuget packages (NUnit and openCover) and I have installed the version 3.4.0 of NUint and the last version of OpenCover. In the configuration options of VS2015 Community I have selected the nunit3-console.exe and the openconver.console.exe.
Hello,
I tryed to install NUnit, i setted the path correctly but i still receiving
the same message )=
Abraços,
Marcus Vinicius
On Tue, Jun 28, 2016 at 1:23 PM, ComptonAlvaro notifications@github.com
wrote:
I have tried to uninstall all nuget packages (NUnit and openCover) and I
have installed the version 3.4.0 of NUint and the last version of
OpenCover. In the configuration options of VS2015 Community I have selected
the nunit3-console.exe and the openconver.console.exe.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#131 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAWLzsAnGT_r_7yrLJfpB4wrl2BGZo16ks5qQUqfgaJpZM4I3ejj
.
I have noticed that when I right click a test in the test window, the option run selected tests with opencCover is disabled.
I have created a new project and it works, so I guess my problem is with my project. I will try to find the reason of the problem.
Thanks for further testing this @ComptonAlvaro ! If you find something specific, feel free to let us know, we could then add extra checks or error messages to avoid the cryptic error you receive now
This is what I do. First, I get the .exe that needs OpenCoverUI, the nunit3-console.exe and the OpenCover.console.exe and copy in a common folder because I want to use with many solutions and this files is set in the settings of VS2015. So I copy in d:\programs\NUnit and d:\programs\OpenCover folders, and use this path in the settings.
Later I delete the hidden folder .vs that exists in my solution folder. Open the OpenCover explorer and refresh, so it finds many tests. I right click of them and run it. I can run it. If I try again, I get the same problem.
I close VS2015, I delete de .vs hidden folder and open the solution again. I can refresh to find the tests and I can run one of them. When I try to run again the test, I get the same error.
So it seems that is something related with the .vs folder. But it is not useful my solution because I only can run one test and I have to exit and run VS2015 each time.
So the problem really is not solved, just it seems to be related with .vs folder.
I have solved my problem. I had VS2015 update 2 and now I have installed the update 3 and now I can run all the tests and I have no problems. I guess the update 3 has repair my VS2015 installation.
Thanks for your help and the good work with this tool.
Thanks for the detailed description @ComptonAlvaro ! This could really help people why experience the same issue in the future, so I'll leave this ticket open for now so people could easily find it