We are trying to run unit tests on a remote windows machine by invoking vstest.console.exe from within Java (using Apache's commons library).
During execution, we are seeing the following logs:
Command being executed: vstest.console.exe testProject.dll
-559038737
The value "-559038737" is the exit code from the command indicating that it has failed.
"vstest.console.exe testProject.dll " when run directly on the command line executes as expected. We also tried executing the Java command which internally invokes this one and that too worked as expected.
To debug the issue, we've tried the following:
- Redirecting the stdout and stderr to a file to see if there is some additional information.
- Increasing the heap size to 1024m.
Neither helped.
What can I try to debug this issue further?
The problem was solved after I tried the following:
Leaving this as an unaccepted answer since I'm not sure what actually caused the problem and how it was solved.