[英]Why does junit complain about missing xsl files ?
Im getting a complaint in my Ant build which refers to a missing junit file : 我在Ant构造中收到投诉,该投诉指的是缺少junit文件:
/reports/style/junit-frames.xsl /reports/style/junit-frames.xsl
This error creeped up after I added the tag to my ant tasks, as a method for printing the failures of unit tests out . 当我将标签添加到我的ant任务中后,此错误逐渐蔓延,这是一种打印单元测试失败的方法。
JUnit frames expects XSL stylesheets to format the reports correctly. JUnit框架希望XSL样式表能够正确格式化报告。 These are
junit-frames.xsl
and junit-noframes.xsl
. 它们是
junit-frames.xsl
和junit-noframes.xsl
。 You'll need to create these files, or copy them from somewhere. 您需要创建这些文件,或从某个位置复制它们。 I guess you've defined a styledir which doesn't exist or something?
我猜你已经定义了一个不存在的styledir或什么?
See JUnitReport task , parameters section. 请参见JUnitReport任务的 “参数”部分。
There are example files in <ant installation directory>/etc
. <ant installation directory>/etc
有示例文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.