ant 运行 项目的junit测试 打出html文件

时流冷静 发布于 2012/12/26 18:06
阅读 573
收藏 0

华为云11月刊推送:DIY微信问答机器人,高性能计算代码的20个技巧!>>>

Buildfile: D:\lxit.ant\build-elevate.xml
prepare:
compile:
jar:
      [jar] Building jar: D:\lxit.ant\lxit.ant.jar
junit:
    [junit] Running com.lxit.party.dao3.CmsUserMngTest
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 3.86 sec
    [junit] Running com.lxit.party.dao3.PaymentDaoImplTest
    [junit] Tests run: 3, Failures: 2, Errors: 0, Time elapsed: 6.391 sec
    [junit] Test com.lxit.party.dao3.PaymentDaoImplTest FAILED
    [junit] Running com.lxit.party.dao3.PlayCardDaoImplTest
    [junit] Tests run: 3, Failures: 2, Errors: 0, Time elapsed: 6.188 sec
    [junit] Test com.lxit.party.dao3.PlayCardDaoImplTest FAILED
    [junit] Running com.lxit.party.dao3.ViolationDaoImplTest
    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 6.39 sec
[junitreport] Processing D:\lxit.ant\build\junitreport\TESTS-TestSuites.xml to C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\null748600747
[junitreport] Loading stylesheet jar:file:/E:/ruanjian/tool/eclipse-3.7.2/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! 当安全处理功能设置为“真”时, 不允许使用扩展元素 'redirect'。
[junitreport] Failed to process D:\lxit.ant\build\junitreport\TESTS-TestSuites.xml

BUILD FAILED
D:\lxit.ant\build-elevate.xml:63: Errors while applying transformations: javax.xml.transform.TransformerException: java.lang.RuntimeException: 当安全处理功能设置为“真”时, 不允许使用扩展元素 'redirect'。

Total time: 27 seconds

加载中
0
ubuntuvim
ubuntuvim
我用jdk1.7也是这样,换成JDK1.6的就好了,好神奇啊!!!
返回顶部
顶部