TAILIEUCHUNG - Pro .NET 2.0 Extreme Programming 2006 phần 3

vào phương pháp thực nghiệm [Kalinsky 01]. Kỹ thuật thay thế dựa trên một phân tích tĩnh của sản xuất sự kiện và sự kiện và nó sẽ sử dụng NUnit và NMock để tự động kiểm tra của bạn là tốt. Chương này sẽ không đưa bạn thông qua các thiết lập CCNet toàn bộ và quy trình thực hiện. | PART 2 XP Tools CHAPTER 6 Build Environment Tool NAnt When working in a team environment you will find it helpful to build the source code you are developing in an automated fashion. This will allow your team members to receive consistent feedback on the integration of their source code. Without a constant and automated build process your team members may not remember to do their builds consistently on their own. This is especially true when the team gets overburdened. One of the tools that will assist you in automating your build process is NAnt. By itself this tool doesn t automate the build process for you but it does help you define what and how you want to build your source code. You might be asking Doesn t Visual Studio .NET already build my source code for me Yes but while Visual Studio .NET will build your source code Visual Studio .NET is not easily automated. This chapter will not cover all the aspects of NAnt but it will give you enough information and direction so that when coupled with the tools covered in the following chapters NUnit NMock and you will be able to create an environment ready for automated builds. What Is NAnt NAnt is essentially a tool that lets you define components of your build and their dependencies. The components are called targets. For example checkout may be a target component of your build process where your source code is checked out of a source code repository. You might also have another target compile that is dependent on the checkout target. In this case the compile target should not do its thing until the checkout target has first done its thing. NAnt uses an XML formatted file to define these components. As such there are XML tags that come with and are specific to NAnt. You will use these tags to form the NAnt build file. A working example should help with your understanding of the usefulness of this tool. We ll examine a simple NAnt build file and test it in this chapter. But first you need to .

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.