I am using Visual studio test task to run all my tests as a part of my build definition. The options that I have enabled are as attached below:
Now, the problem here is that, some of my tests always fail when I run them from the build pipleine , however all of these test seem to pass when I run them via vstests console.exe command.
ex:
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\VSTest.Console" <path to dll>
Does anyone have any clue what could be wrong in here? Thanks.
Using the
Installed by tools installer
selection, I would need to see what your tools installation task is doing to provide additional info. Maybe you're not installing a version that is compatible with the tests?If you don't have a specific need to call out a different test platform version, maybe try using
Latest
.OR
Since you're calling
...\Microsoft Visual Studio 14.0\...\VSTest.Console
, you may want to select theVisual Studio 2015
option.