0

We have a TFS build definition that kicks off NUnit tests tagged with the 'Regression' test category. This uses the NUnit console runners annotation of

where cat = 'Regression'

However, we have multiple different environments where some tests will fail in one environment, they will pass in the other. We have not made much use of the Playlist feature, because I can not find a way to target a playlist when running remotely on TFS. Does anyone know how this can be done? Thanks!

Tree55Topz
  • 1,102
  • 4
  • 20
  • 51

1 Answers1

0

Unfortunately, there is no way of specifying this/playlist in the TFS Build Definition for now. A related uservoice:

Allow test playlists to be used by TFS build servers

https://visualstudio.uservoice.com/forums/330519-visual-studio-team-services/suggestions/3853614-allow-test-playlists-to-be-used-by-tfs-build-serve

As a workaround, you could use .orderedtest instead of .playlist.

Ordered tests can be created and edited in VS2013 and later. The format is otherwise similar to .playlist but it contains links to test GUIDs so its more complicated to modify programmatically.

TFS is able to run orderedtest in build pipeline, how to achieve this you could refer below links:

PatrickLu-MSFT
  • 49,478
  • 5
  • 35
  • 62