Skip to content
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 for NUnit3TestAdapter #303

Closed
smadala opened this issue Feb 20, 2017 · 2 comments · Fixed by #637
Closed

Directory.GetCurrentDirectory is C:\WINDOWS\system32 for NUnit3TestAdapter #303

smadala opened this issue Feb 20, 2017 · 2 comments · Fixed by #637

Comments

@smadala
Copy link

smadala commented Feb 20, 2017

Discription

Test Passing in NUnitTestAdapter is Failing in NUnit3TestAdapter.
Run a test which depends on file in output directory.
Failed with IO Exception.

Steps to Repro

Download NUnitTestProject1.zip
Run tests

@CharliePoole
Copy link
Contributor

This actually has nothing to do with the adapters but is a difference between NUnit V2 and NUnit 3. In V2 we guaranteed that the current directory would match the location of the test assembly. In NUnit 3, due to parallelism, this is no longer possible. Use TestDirectory property from TextContext instead.

@OsirisTerje
Copy link
Member

This will be fixed, see #609

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants