vendredi 20 novembre 2015

How to explicitly exclude assemblies in test runner during TFS Build

In my solution I have c++ and c# projects with corresponding Unit test projects mixed. During a TFS build I only want to execute the C# unit tests. Unfortunately I can't find a way to exclude these test assemblies to be being used in the unit test runner. I could identify all c++ unit tests projects based on a naming patter like Native.Tests.dll.

I can't find a way to explicitly exclude certain test assemblies from being tested/executed from the test runner.

Environment:

  • TFS 2013
  • Process template: ReleaseTfvcTemplate.12.xaml

In case you are wondering: Why do I want to exclude certain assemblies?

I want to use the Test Category feature to exclude certain unit tests from being executed on the build server, which you do through the TestCaseFilter feature in the TFS template. You specify that per "Test batch". When I run all my unit tests (c# + c++) in one test settings the native unit tests throw an error, because they don't understand/support the TestCategory-filter feature (remember: Test Case Filter). Therefore I want to split the it in 2 test runs/batches: c++ and c#.

Aucun commentaire:

Enregistrer un commentaire