1

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:

enter image description here

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.

learntogrow-growtolearn
  • 1,190
  • 5
  • 13
  • 37

1 Answers1

0

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?

enter image description here


If you don't have a specific need to call out a different test platform version, maybe try using Latest.

enter image description here

OR

Since you're calling ...\Microsoft Visual Studio 14.0\...\VSTest.Console, you may want to select the Visual Studio 2015 option.

enter image description here

Josh Gust
  • 4,102
  • 25
  • 41