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

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

问题描述:

我在我的 Ant 构建中收到一个抱怨,它指的是缺少 junit 文件:

Im getting a complaint in my Ant build which refers to a missing junit file :

/reports/style/junit-frames.xsl

/reports/style/junit-frames.xsl

在我将标签添加到我的 ant 任务后,这个错误逐渐出现,作为打印单元测试失败的一种方法.

This error creeped up after I added the tag to my ant tasks, as a method for printing the failures of unit tests out .

JUnit 框架期望 XSL 样式表正确地设置报告格式.它们是 junit-frames.xsljunit-noframes.xsl.您需要创建这些文件,或从某处复制它们.我猜你已经定义了一个不存在的 styledir 什么的?

JUnit frames expects XSL stylesheets to format the reports correctly. These are junit-frames.xsl and 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?

请参阅JUnitReport 任务,参数部分.

/etc中有示例文件.