Why does junit complain about missing xsl files ?

萝らか妹 提交于 2019-12-13 03:41:31

问题


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

/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 .


回答1:


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?

See JUnitReport task, parameters section.

There are example files in <ant installation directory>/etc.




回答2:


Because this file probably does not exist and you will have to write it.

I guess you are referring to your other question?



来源:https://stackoverflow.com/questions/8234356/why-does-junit-complain-about-missing-xsl-files

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!