How to solve issue with publishing test results in TFS Build
You would probably have noticed Unit Test failure even if tests passed successfully during TFS build. Reason is MsTest.exe is failed to write TestResults folder into your build drop directory. After examining with a Process Monitor, MsTest.exe is running under myTfsMachine$ machine credential rather than a build process agent credential
See the original post:
How to solve issue with publishing test results in TFS Build


