Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS unit tests passing on developer machine but failing on build machine

I have some unit tests that are passing on developer machine but failing on TFS build machine. These tests are failing for different reasons. I have very limited access to build machine. But I could look into the drop folder and see what DLL files were deployed etc.

Also I see that pdb files were deployed on the build machine.

Is there any way to debug and step through the code on why its only failing on build machine?

like image 548
dotnet-practitioner Avatar asked Dec 28 '12 18:12

dotnet-practitioner


1 Answers

Is there any way to debug and step through the code on why its only failing on build machine?

Yes you can attach to the process on the build machine... But you would have to be logged into the Build machine and have an instance of VS running on the server and have Admin rights to attach to the thread...

You could also do it if the admins were willing to open up the server to remote debugging. But since that opens up more of a security risk than just giving you access to the server it is unlikely that this option is viable either.

So for you no. You will need to look at what the failures are and figure out what would cause that to happen. Then you can try to fix that.

like image 179
Chad Avatar answered Nov 01 '22 13:11

Chad