为什么 junit 会抱怨缺少 xsl 文件? [英] Why does junit complain about missing xsl files ?

查看:37
本文介绍了为什么 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中有示例文件.

这篇关于为什么 junit 会抱怨缺少 xsl 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆