Nil Pun
Nil Pun

Reputation: 17383

TFS CI Build runs each unit tests twice

We've a TFS Server with CI setup. Some reason, the CI runs each unit tests two times. Anyone got any hint why, please?

Upvotes: 3

Views: 2561

Answers (2)

Edin
Edin

Reputation: 1496

This behavior may occur in the following combination:

  • The test project is referenced by another project in the solution and
  • MsBuild is instructed to generate folder for each project, i.e MsBuild switch /p:GenerateProjectSpecificOutputFolder=true is used

Upvotes: 7

allen
allen

Reputation: 4647

Check your build definition. Here within the process details check your test sources. I would bet two of your filters are resolving to the same .dll causing this issue.

Upvotes: 2

Related Questions