简体   繁体   中英

vstest.console.exe gets stuck after first test when executed from TFS Build

I have my build definition for my project set up on TFS. I intend to add Task to Run C++ Unit Tests and run them after each build.

I tried and added the task. When the Tests ran on TFSBuild the first test crashed with unhandled c++ exception and did not moved to next test. It hung there itself.

So I tried to run the test manually using command line(cmd). I ran the vstest.console.exe command and executed all tests and they ran fine when ran from cmd on the Build Agent. I also tried running them on Visual Studio and they ran fine on the Build Agent.

I am not sure what is going wrong with the TFS.

I have found the solution but not the root cause of the issue. The issue is solved by using an interactive tfs agent.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM