Monday, 15 August 2011

c# - Why My test Binaries are getting copied into TestResults\\out folder? -



c# - Why My test Binaries are getting copied into TestResults\<somepath>\out folder? -

i facing unusual behavior visual studio of sudden test binaries(mytestsolution.dll) , dependency binaries added in reference, getting copied testresults\\out folder bin folder , starts executing there?

this results in tests getting failed getexecutionassembly() giving path of out folder instead of bin folder of dependent binaries exist?

could 1 please help me how stop this?

visual studio 2010 creates folder testresults , deploys relevant files in subdirectories next schema: username_computername date time.

this normal behavior if don't have .testsettings file solution. .testsettings file situated in folder solution items.

if have .testsettings file, depends on setting of enable deployment in deployment section. if enable deployment checked, testresults folder created , filled.

in cases possible testresults folder created although enable deployment deactivated. in case folder used temporary files, not execution files of tests.

for more infos see:

msdn - test deployment overview

c# visual-studio-2010 unit-testing deployment msbuild

No comments:

Post a Comment