您的位置:软件测试 > 开源软件测试 > 开源单元测试工具 > junit
使用clover为junit单元测试做覆盖率分析
作者:网络转载 发布时间:[ 2013/10/15 10:40:03 ] 推荐标签:

    我们现在给出完整的修改后的build.xml文件:

    moneytest build file

    fork="yes">

    现在我们执行report这个任务:

    C:cloversincky>ant report

    Buildfile: build.xml

    clover:

    [clover-setup] Clover Version 1.3.8, built on May 18 2005

    [clover-setup] loaded from: C:cloverlibclover.jar

    [clover-setup] 30 day Evaluation License registered to sinckyzhang@163.com

    [clover-setup] You have 10 day(s) before your Evaluation License expires.

    [clover-setup] Clover is enabled with initstring 'C:cloversinckydemo_coverage.db'

    report:

    [clover-report] Clover Version 1.3.8, built on May 18 2005

    [clover-report] loaded from: C:cloverlibclover.jar

    [clover-report] 30 day Evaluation License registered to sinckyzhang@163.com

    [clover-report] You have 10 day(s) before your Evaluation License expires.

    [clover-report] Loaded results from 1 coverage recording.

    [clover-report] Writing report to 'C:cloversinckyclover_html'

    [clover-report] Done. Processed 1 packages.

    BUILD SUCCESSFUL

    Total time: 1 second

    现在你可以打开sincky下的clover_html文件夹下的index.html文件,如下所示:

上一页12345678下一页
软件测试工具 | 联系我们 | 投诉建议 | 诚聘英才 | 申请使用列表 | 网站地图
沪ICP备07036474 2003-2017 版权所有 上海泽众软件科技有限公司 Shanghai ZeZhong Software Co.,Ltd