简体   繁体   English

为什么junit抱怨缺少xsl文件?

[英]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.xsljunit-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有示例文件。

Because this file probably does not exist and you will have to write it. 因为此文件可能不存在,所以您将不得不编写它。

I guess you are referring to your other question ? 我猜您是在指其他问题吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么checkstyle抱怨这个? - Why does checkstyle complain about this? 为什么javac抱怨没有初始化变量? - Why does javac complain about not initialized variable? 当mvn命令行没有时,为什么M2Eclipse会抱怨缺少工件? - Why does M2Eclipse complain about missing artifact when mvn command line doesn't? 为什么Maven抱怨netty-tcnative-boringssl-static中所谓的丢失方法? - Why does Maven complain about supposedly missing method in netty-tcnative-boringssl-static? 为什么即使指定了TFramedTransport,Node JS为什么也抱怨缺少TFramedTransport? - Why does Node JS complain about a missing TFramedTransport even though TFramedTransport is specified? 为什么Eclipse为什么抱怨不安全的类型转换? - Why does Eclipse complain about unsafe type casting? 为什么Netbeans抱怨同步呼叫被条件包裹? - Why does Netbeans complain about a synchronized call being wrapped with a conditional? 为什么内部类会抱怨泛型类型? - Why does the inner class complain about generic type? MySQL为什么在此查询中抱怨未知列? - Why does MySQL complain about an unknown column in this query? 为什么jruby抱怨有效的java_opts - Why does jruby complain about valid java_opts
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM