简体   繁体   English

如何在带有TFS 2012的Visual Studio 2012中实现签入舞蹈功能

[英]How to implement a check-in dance feature in Visual Studio 2012 with TFS 2012

We want a feature we feel would save our team a lot of time. 我们想要一个我们认为可以节省我们团队很多时间的功能。

We have a build server that performs gated check-ins but it is old and heavily burdened. 我们有一个生成服务器,可以执行门控值机,但是它很旧且负担沉重。 If we can avoid putting load on our build server then we need to. 如果我们可以避免在构建服务器上增加负载,那么我们需要这样做。

When a developer tried to check in to TFS [also git, Mercurial if possible], visual studio should instead: 当开发人员尝试签入TFS时(如果可能,还请登录git,Mercurial),Visual Studio应该改为:

  1. Get latest. 取得最新消息。
  2. Clean the solution. 清洁溶液。
  3. Build the solution. 构建解决方案。
  4. Run all the smoke unit tests. 运行所有烟雾单元测试。
  5. if they pass, then check in to TFS. 如果它们通过了,则签入TFS。

Does anyone know how to implement this in visual studio or with macros or an open source or commercial tool? 有谁知道如何在Visual Studio中,宏,开源或商业工具中实现此功能?

In TFS you could add a few checkin policies to ensure the developer has built and run tests. 在TFS中,您可以添加一些签入策略以确保开发人员已构建并运行测试。

Here's some more information on checkin policies 这是有关入住政策的更多信息

http://blogs.msdn.com/b/jjameson/archive/2009/10/31/recommended-check-in-policies-for-team-foundation-server.aspx http://blogs.msdn.com/b/jjameson/archive/2009/10/31/recommended-check-in-policies-for-team-foundation-server.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM