Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Giới thiệu
Đăng ký
Đăng nhập
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
Giới thiệu
Đăng ký
Đăng nhập
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
Java Extreme Programming Cookbook phần 3
Đang chuẩn bị liên kết để tải về tài liệu:
Java Extreme Programming Cookbook phần 3
Trúc Ly
82
28
pdf
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Một stack của thẻ chỉ số, quét mã vạch một, hoặc thậm chí một mảnh giấy có thể phục vụ như một công cụ thiết kế hiệu quả đáng ngạc nhiên. Đây là quá trình: 1.2. 3. 4.5. Vẽ một sơ đồ. Viết một thử nghiệm đơn vị. Viết một số mã. Lặp lại các bước 2-3 cho đến khi tính năng được hoàn tất. Vứt bỏ sơ đồ. | 3.18.3 Discussion In earlier examples we sent test results directly to the console. In order to format our results as HTML we need to first write the test results to a series of XML files. We do this with the following line formatter type xml This causes test results to go to a series of XML files one per test. The XML files are written to the directory named by the todir attribute of the junit task or the nested batchtest element. Once the files are created j unitreport uses XSLT stylesheets to convert the XML files into a nice HTML report. The complete Ant target is shown in Example 3-9. Example 3-9. Generating a test report target name junit depends compile junit printsummary on fork false haltonfailure false classpath refid classpath.project -formatter type xml batchtest todir dir.build fileset dir dir.src include name Test .java fileset batchtest junit junitreport todir dir.build fileset dir dir.build -include name TEST- .xml fileset -report format frames todir dir.build junitreport -- convert an Ant path to a fully-qualified platform specific path -- pathconvert dirsep property reportUrl path pathelement location dir.build index.html path pathconvert -- launch a web browser to view the results -- exec executable cmd os Windows XP arg value C arg value reportUrl -- the full path to the report -- exec target Our buildfile runs all tests in the src directory tree and then sends XML results to the build directory which was specified in the todir attribute of junitreport. After junitreport runs we launch a web browser to view the test results. This last portion of the example only works on Microsoft Windows. If you are on a different platform simply change the exec task to point to your browser. 3.18.4 See Also The previous two recipes show other ways to run tests. 3.19 Checking Out Code from CVS 3.19.1 Problem You want your Ant buildfile to check out code from CVS before compiling. 3.19.2 Solution Use Ant s cvs task. 3.19.3 Discussion You can use the cvs Ant task
TÀI LIỆU LIÊN QUAN
Java™ Extreme Programming Cookbook
Java Extreme Programming Cookbook phần 1
Java Extreme Programming Cookbook phần 2
Java Extreme Programming Cookbook phần 3
Java Extreme Programming Cookbook phần 4
Java Extreme Programming Cookbook phần 5
Java Extreme Programming Cookbook phần 6
Java Extreme Programming Cookbook phần 7
Java Extreme Programming Cookbook phần 8
Java Extreme Programming Cookbook phần 9
crossorigin="anonymous">
Đã 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.