jeudi 25 février 2016

VSTest.Console.Exe requiring specific working directory

It seems like vstest.console.exe cannot find a settings file even with absolute path if we are not in the working directory of the solution we're trying to test.

If I'm running

Path\To\vstest.console.exe "AbsolutePathToTest.dll" /Settings:"AbsolutePathToRunSettingsFile"

with the working directory set to the solution directory, the runsettings file is found and the DeploymentEnabled flag (set to false) in it is honored.

If I'm running it from the parent directory, the tests are run in the TestResults directory, so it seems like the runsettings file is simply ignored.

Since the command is executed by the new TFS 2015 build, it's not possible to change the working directory. Am I doing anything wrong here or is there a work around?

Aucun commentaire:

Enregistrer un commentaire