-
Notifications
You must be signed in to change notification settings - Fork 329
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
Directory.GetCurrentDirectory is C:\WINDOWS\system32 #504
Comments
This is affecting xUnit as well -- the test host needs to set the directory. |
@onovotny When are you seeing xUnit affecting, can you please provide more info, do you see on Debug/Run test? |
Able to repro for NUnit3TestAdapter >= 3.2.0, but same test works for NUnitTestAdapter 2.0.0. |
Raised a issue on Nunit side: nunit/nunit3-vs-adapter#303 |
From nunit/nunit3-vs-adapter#303 (comment)
This is behavior change in NUnit3, using |
In the past, the host process set the current directory -- That the very least though the test host should set the current directory before invoking the adapter code so we're at a good starting point. |
IMO this is just pushing the problem to the user. The framework should be setting |
@onovotny testhost can't set the current directory because it can run multiple test sources at a time. |
Description
When running NUnit tests from VS the result of
Directory.GetCurrentDirectory()
isC:\WINDOWS\system32
, causing tests that load files with relative paths to fail.Steps to reproduce
Expected behavior
Actual behavior
Environment
Win10
VS2017RC4
The text was updated successfully, but these errors were encountered: