MSTest Environment.CurrentDirectory is invalid VS 2012

I use MSTest and Visual Studio 2012 for unit testing, and I am confronted with the difference in how it works on two different machines regarding Environment.CurrentDirectory calls. Both machines perform the same tests and use the same .testsettings file (when deployment is turned off), but on one of them Environment.CurrentDirectory returns the bin / debug of the project (as I want), and the other returns TestResults / ... / Out as the current working directory.

In the one that runs in the bin / debug folder, the TestResults folder to run is empty, but on another machine, the TestResults folder contains the AgentReset file, and I don’t know where it came from. Does anyone know why this will happen, and if there is somewhere somewhere somewhere somewhere somewhere somewhere?

+7
source share
1 answer

Check if there are any deployments that are included on the second computer.

0
source

All Articles