Unit tests Process.Start() error: access is denied, file doesn't exist, credentials invalid. #2715
Unanswered
avengerx
asked this question in
Development
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This seems to be reproduced by a very specific set up, so I'm not logging as an issue. Should be useful should anybody else faces this in the future.
The following exception could be thrown while trying to un any test case using Visual Studio 2022's test explorer:
The
ILSpy-tests
directory is a submodule that should be checked out prior to running at least a given range of tests.Under windows, if the repositories are checked out using cygwin's git client, permissions may get specified in a way, such that running
dotnet test...
from Cygwin command line would work fine. Yet running the unit tests from Visual Studio would result in the exception above.To correct permissions, what worked for me was just change to
ILSpy-tests
directory (git submodule), and runicacls . /reset /t
so that permissions are reset to defaults inherited from upper level directories (as if resetting permissions to "inherit from parent directory").Beta Was this translation helpful? Give feedback.
All reactions