0

我想在 eclipse 中生成 junit 报告。我生成了 build.xml,然后运行我的测试。我执行此处描述的步骤http://earlwillis.wordpress.com/2012/01/31/getting-started-with-junit-reports/。但我得到错误

Buildfile: E:\eclipse\WebDriver\build.xml
build-subprojects:
init:
build-project:
 [echo] WebDriver: E:\eclipse\WebDriver\build.xml
[javac] E:\eclipse\WebDriver\build.xml:45: warning: 'includeantruntime' was not set,     defaulting to build.sysclasspath=last; set to false for repeatable builds
 build:
Sector:
[junit] Running Sector
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
[junit] Test Sector FAILED
junitreport:
[junitreport] Processing E:\eclipse\WebDriver\junit\TESTS-TestSuites.xml to E:\DOCUME~1  \CONSUL~1\LOCALS~1\Temp\null35256633
[junitreport] Loading stylesheet jar:file:/E:/eclipse/plugins/org.apache.ant_1.8.2.v20120109-1030/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
[junitreport] : Error! The first argument to the non-static Java function 'replace' is not a valid object reference.
[junitreport] : Error! Cannot convert data-type 'void' to 'reference'.
[junitreport] : Fatal Error! Could not compile stylesheet
[junitreport] Failed to process E:\eclipse\WebDriver\junit\TESTS-TestSuites.xml

BUILD FAILED
E:\eclipse\WebDriver\build.xml:193: Errors while applying transformations: Fatal error during transformation

Total time: 2 seconds

如果需要,我可以提供 build.xml。在 junit 文件夹中,我没有看到任何 html 文件。我做错了什么?

4

0 回答 0