-
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
An exception occurred while invoking executor 'executor://nunit3testexecutor/' #259
Comments
I think that if you have installed the test runner as a VSIX, you could find it in Ideally you should upgrade by figuring out why you are getting app domain unload exceptions. Can you give us any information on that? |
I forgot to mention, that the adapter is integrated via a NuGet package, so no VSIX extension is installed. When I Install the NUnit Adapter 3.0.10 Visual Studio Extension, the test will work again. Regarding the AppDomain unload exception. In that case I think the problem is related to our tests that will take some time to improve (they start threads that are never stopped...). When I run the tests I get output like this:
The problem is, that there are more than 3000 tests, so at some random point the execution just stops and doesn't continue, the overall test result will be 'green'. When I debug the tests, none of the app domain unload exceptions is printed, and all the tests execute. |
This issue (edit: about the AppDomain unload) is fixed by PR #318. The NUnit TestAdapter tries to unload the app-domain after executing the tests, but the CLR fails to do it (for whatever reason, likely some background thread inhibiting shutdown for a bad reason), and throws a When running only selected tests, this cancels any further test execution (when running all tests, this exception is only logged and other tests continue execution). |
When I try to run my tests from Visual Studio, since a few days, I get the error message:
This issue suddenly appeared. At least I cannot remember that I updated something on my system.
The used VS version is 2015 Update 3. I can see the same behavior in VS15 Preview 5.
Any help to diagnose / fix / work around the issue would be appreciated.
Note: This issue doesn't happen in the 3.5.1 version of the test adapter, but as my test currently crash with app domain unload exceptions in that version, I cannot upgrade yet.
The text was updated successfully, but these errors were encountered: