JUnit and Ant combination

xiaoxiao2021-03-06  58

JUnit and Ant combined with Cherami Repost

Ant provides two Target: JUnit and JunitReport run all test cases and generate reports of the HTML format as follows: 1. Place junit.jar in the ANT_HOME / LIB directory 2. Modify Build.xml, add the following: < property name = "report" value = "report" /> ----- ---------------------------- -------------------------- One or more tests failed, Check The Report for Detail ... ---------- ---------------------------------------------- Run this target, Ant will run each testcase with a lot of Test * .xml and some web pages in the Report directory, INDEX.html under the Report directory can see very intuitive test run report, at a glance .

转载请注明原文地址:https://www.9cbs.com/read-113015.html

New Post(0)