[ Team LiB ] |
3.13 Preventing Build Breaks3.13.1 ProblemYou are concerned because developers keep "breaking the build" by checking in broken code to your version control tool.[3]
3.13.2 SolutionAdopt a policy in which developers must perform a clean build using Ant before checking in changes to the source repository. Ask them to run all unit tests, as well. 3.13.3 DiscussionThis is largely a project management issue. If your team has an Ant buildfile along with a suite of unit tests, the build should not be breaking on a routine basis. Understand that people do make mistakes, such as forgetting to commit some changes to CVS despite having tested their changes. Each developer should follow these suggestions in order to minimize integration problems:
3.13.4 See AlsoChapter 1 and Chapter 2 discuss XP practices such as continuous integration and pair programming. |
[ Team LiB ] |