Android Ant emma调试安装测试无法识别org.mock.Mocktio
我想获得Andriod测试的代码覆盖率报告 我正在运行这个命令Android Ant emma调试安装测试无法识别org.mock.Mocktio,android,unit-testing,ant,Android,Unit Testing,Ant,我想获得Andriod测试的代码覆盖率报告 我正在运行这个命令 ant emma debug install test 当我不使用Mockito来模拟一个类时,这就起作用了,测试通过了,并且生成了覆盖率报告 但是如果我用Mockito ant运行它,emma会给出一个错误 error: package org.mockito does not exist 当我在没有任何覆盖的情况下运行Mockito时,测试通过了 在为使用Mockito的测试运行AntEmma之前,我需要包括任何特殊设置或
ant emma debug install test
当我不使用Mockito来模拟一个类时,这就起作用了,测试通过了,并且生成了覆盖率报告
但是如果我用Mockito ant运行它,emma会给出一个错误
error: package org.mockito does not exist
当我在没有任何覆盖的情况下运行Mockito时,测试通过了
在为使用Mockito的测试运行AntEmma之前,我需要包括任何特殊设置或JAR吗
IDE:Intellij14,
使用的JAR:dex maker 1.0、dex maker mockito 1.0、mockito 1.9.5,用于
ant emma调试安装测试,以与mockito配合使用
将dexmaker1.0、dexmakermockito1.0、mockito1.9.5jar文件放入
Andriod项目的libs文件夹
如果要限制覆盖率报告,请使用ant clean emma debug install test