Logo

Maarten Balliauw {blog}

ASP.NET, ASP.NET MVC, Windows Azure, PHP, ...

About the author

Maarten Balliauw is currently employed as .NET Technical Consultant at RealDolmen. His interests are mainly web applications developed in ASP.NET (C#) or PHP and the Windows Azure cloud platform.
More about me More about me
Send mail E-mail me


ASP.NET MVC Quickly Subscribe to my RSS feed Follow me on Twitter! View Maarten Balliauw's profile on LinkedIn
View Maarten Balliauw's MVP profile

Search

Latest Twitter

    Follow me on Twitter...

    Archive

    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

    © Copyright Maarten Balliauw 2012


    The devil is in the details (Visual Studio Team System test policy)

    Have you ever been in a difficult situation where a software product is overall very good, but a small detail is going wrong? At least I've been, for the past week...

    Team System allows check-in policies to be enforced prior to checking in your code. One of these policies is the unit testing policy, which allows you to enforce a specific test list to be run prior to checking in your code.

    How it is...

    Now here's the catch: what if you have a Team Project with 2 solutions in it? How can I enforce the check-in policy to run tests from solution A only when something in solution A is checked in, tests from solution B with solution B changes, ...

    How it should be...

    Creating a custom check-in policy

    To be honest, there actually are quite enough examples on creating a custom check-in policy and how to install them. So I'll keep it short: here's the source code of my solution (VS2008 only).

    kick it on DotNetKicks.com


    Categories: C# | General | Projects | Quality code | Testing

    Comments (3) -

    Nick Berardi United States |

    Friday, June 13, 2008 3:09 AM

    Nick Berardi

    Hi,

    I am an avid user of TFS since its initial release in 2005.  I am curious.  How did you get two different solutions under your Team Project?  Or is that an artistic license that you took in order to illustrate a point?

    maartenba Belgium |

    Friday, June 13, 2008 7:39 AM

    maartenba

    The screenshot is fake, true Smile But it's quite easy to put more solutions in one Team Project? Whenever you want to attach a solution to source control, you can pick the same Team Project for each solution.

    Nick Berardi United States |

    Friday, June 13, 2008 1:48 PM

    Nick Berardi

    Oh yeah I know you can store unlimited files under one TFS project.  I was just curious about the screenshot.

    Comments are closed