单元测试报告的XML格式规范(DTD,XSD ..)
发布时间:2020-12-16 07:42:40 所属栏目:百科 来源:网络整理
导读:许多工具生成并使用单元测试报告相同的 XML文件格式. 示例(source): ?xml version="1.0" encoding="UTF-8" ?testsuite errors="0" failures="0" hostname="hazelnut.osuosl.org" name="net.cars.engine.MoteurTest" tests="6" time="0.021" timestamp="2007
许多工具生成并使用单元测试报告相同的
XML文件格式.
示例(source): <?xml version="1.0" encoding="UTF-8" ?> <testsuite errors="0" failures="0" hostname="hazelnut.osuosl.org" name="net.cars.engine.MoteurTest" tests="6" time="0.021" timestamp="2007-11-02T23:13:50"> <properties> <property name="java.vendor" value="IBM Corporation" /> <property name="os.name" value="Linux" /> <!-- more property tags--> </properties> <testcase classname="net.cars.engine.MoteurTest" name="hasBougie" time="0.0010" /> <testcase classname="net.cars.engine.MoteurTest" name="hasCarburatueur" time="0.0010" /> <!-- more testcase tags--> <system-out><![CDATA[]]></system-out> <system-err><![CDATA[]]></system-err> </testsuite> 经过一番调查,我发现格式是由apache基础(由ant项目)提出的. 由…生产: junit蚂蚁任务 消费者: junitreport蚂蚁任务 唯一可以找到的文件就是这个蚂蚁wiki页面: 有没有这种格式的规格(DTD,XSD)? 我想从手写一个这样的文件…(或者如果你知道的话也可以使用librairy)…
此页面
http://windyroad.org/2011/02/07/apache-ant-junit-xml-schema/表明,JUnit测试报告的XML模式在这里是
http://windyroad.org/dl/Open%20Source/JUnit.xsd
该模式的结构似乎与您给出的示例相匹配. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |