Ant JUnit Source: 9CBS Biggie BLOG With the extensive promotion of Refactoring Technology and XP software engineering technology, the role of unit testing is increasingly important in software engineering, and a concise or easy, high-efficiency and stable The unit test framework has a vital role in the test of successful implementation units. In the Java programming statement environment, Junit Framework is an excellent test framework that has been adopted and empirically used by most Java programmers, but most of the number of programs that do not try JUnit Framework are learning how JUnit Framework is to write unit tests that adapt to their own development projects. I still feel that there is a certain difficulty, which may be because JUnit has the user guide and documentation with the framework code and utility with a focus on explaining the design method of the unit test framework and a simple type of use instructions, while the framework is in a specific test framework. Under how to implement unit testing, how to update and maintain existing unit test code during project development has not been explained in detail. Therefore, this document has further supplemented and description of the documentation attached to JUnit, so that JUnit can be used by more development teams, allowing unit testing and even refactoring, XP technology better in more development teams .
This article will show the overall test method of Ant JUnit, and generate test reports, send junit.jar under Ant_HOME / LIB, then write junit.jar under Ant_HOME / LIB, then write build.xml files Build.xml XML Version = "1.0" encoding = "gb2312"?>