Expert PHP 5 Tools phần 10

Đầu tiên, các nhiệm vụ filterchain cho phép bạn xử lý các tập tin được sao chép. Trong trường hợp của chúng tôi, chúng tôi đang sử dụng nhiệm vụ expandproperties để thay thế tất cả các giữ chỗ bằng tài sản. Thứ hai, nhiệm vụ fileset cho phép chúng ta xây dựng một danh sách các tập tin bằng cách bao gồm | Chapter 10 Since PHP is an interpreted rather than a compiled language we don t have the luxury of looking towards compilation to judge whether a project built successfully. That is why unit tests become so much more important during continuous integration. After all checking a project out of Subversion into a local directory on the CI server tells us nothing about whether the application is actually working or not. Executing a suite of unit tests however will tell us a whole lot about how successfully the application is behaving. If you were slacking off on writing unit tests either before or after working on changes to your source code you now have an added incentive. Not only is it good practice to write unit tests for the sake of your code it is absolutely essential for setting up a CI environment. Think about it this way if you are looking to benefit from a CI process chances are that there is more than one cook in the kitchen. In other words the team working on your application probably consists of at least several developers analysts testers and so on. Even if your code in itself is flawless think about all those times when others manage to break your code. No matter how loosely coupled your code is there are dependencies that can cause your unit tests to fail even if another developer is making changes to his code. Having unit tests in place and executing them automatically during the periodic CI process will let all interested parties know if a test fails especially the owner of the unit test and the developer whose code broke the test. So if you are cherry picking chapters in this book and you haven t taken in the chapter on unit testing or don t know about it already I urge you to do so now. Of course if you are primarily interested in setting up a continuous integration process while other team members have to worry about coding and writing unit tests feel free to continue reading. Automation Phing Integration has always been a necessary part of .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã 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.