Does anyone know how to enforce that all tests pass before a TFS check in?
Asked
Active
Viewed 1,774 times
5
-
1hey, it can be done by defining a Check in policy in TFS. – Singleton Nov 05 '10 at 10:37
-
@Hansmukh. I'm curious. How would you do that? – Thomas Weller Nov 05 '10 at 11:46
2 Answers
5
TFS provides so-called Gated check-ins. That means: the complete build (which includes the test runs) is run and has to pass, otherwise the check-in is rejected. It's quite performance-demanding and somewhat time-consuming, when working in a larger team, but otherwise works like a charm.
HTH.

mac
- 42,153
- 26
- 121
- 131

Thomas Weller
- 11,631
- 3
- 26
- 34
4
You can use the default "Testing checkin policy".
If you want to create your own testing policy, you can use this.

Glorfindel
- 21,988
- 13
- 81
- 109

Ewald Hofman
- 12,688
- 3
- 39
- 44