问题
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