-
Notifications
You must be signed in to change notification settings - Fork 748
Nunit 3.10.1.0 + ReSharper 2020.1.4: Test execution delayed by ~60seconds #3601
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
Comments
The key bit you have left out is what kind of an application you are targeting. 😃 That line of code will execute differently depending on whether you are using MonoTouch or not. To be more precise, it will execute differently depending on whether an assembly containing that UI delegate is loaded or not. |
Thanks for the info. I did non hear about MonoTouch until yesterday, so I do not think it is involved at all. The call always returns "Null". In the meantime I believe it might be something how the resharper testrunner orchestrates NUnit. Maybe it is something in the environment. But currently I'm lost and do not know what to look for. EDIT: EDIT2: File NUnitTestAssemblyRunner.cs -> in method
|
I suspect a PR I did 2 years ago is the reason for the change between 3.10 and 3.12 --> #3131 I have no idea what might be the cause of your current issue, I'm afraid. |
Morning, Last Friday I was experimenting and tried to create a simple test project, to be able to reproduce the problem.... It is not that easy :-/.
Then I tried to find out if a file maybe affects ReSharper or NUnit, by deleting chunks of 500 files. But that did not lead to clear results:
The Testrunner of resharper shows only one real difference between 2019.2.4 and 2020.1.4 in the verbose log (apart from different bin folder):
|
@h4kun4m4t4t4 I agree you need to follow this one up with the ReSharper team. Those log messages you've shared are from ReSharper, not NUnit, but sound like they might point to the difference. I'll close this issue, as I don't think there's any more we can do here - but please open a new one if you can trace a cause back to NUnit. 👍 |
I believe this was fixed by #4034 |
Hi,
first of all, I'm not sure whether NUnit or Resharper might be the problem. (But problems started after upgrading to latest resharper)
When I start the execution of a test via resharper test runner, the test shows pending for about 60 seconds before even starting the relevant test code. I tracked it down to be a loading/performance issue at RuntimeFramework.cs
Type monoTouchType = Type.GetType("MonoTouch.UIKit.UIApplicationDelegate,monotouch");
The call to the above takes about 60 seconds and will then continue normal test execution.
Does anyone know what the problem might be or how I can track it further down?
What I did so far:
Execution with MS Test and NUnitTestadapter: works fine
setup a new Solution: no problem of test execution
When at the above position in debugger -> execute at immediate window (without the ",monotouch"):
Type.GetType("MonoTouch.UIKit.UIApplicationDelegate");
--> returns immediatelyThe text was updated successfully, but these errors were encountered: