白盒测试 jacoco 代码覆盖率求助

独行数息 · 2017年06月19日 · 最后由 小鱼 回复于 2018年12月03日 · 1539 次阅读

jacoco 进行安卓覆盖率测试,插庄后运行总是报错 ,按照论坛里面的教程来搞的,有大神指导如何解决?

INSTRUMENTATION_STATUS: id=ActivityManagerService
INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for: ComponentInfo{com.bluepay.example/com.bluepay.example.test.JacocoInstrumentation}
INSTRUMENTATION_STATUS_CODE: -1
android.util.AndroidException: INSTRUMENTATION_FAILED: com.bluepay.example/com.bluepay.example.test.JacocoInstrumentation
at com.android.commands.am.Am.runInstrument(Am.java:953)
at com.android.commands.am.Am.onRun(Am.java:318)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
at com.android.commands.am.Am.main(Am.java:99)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:249)

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
共收到 3 条回复 时间 点赞

你好。请问你的问题解决了吗?我遇到了和你类似的问题。

zhang 回复

没有,在https://testerhome.com/topics/8554这个帖子里面询问了贴主,还没有人解答

今天试的时候也出现这个问题,我自己的原因是在 AndroidManifest.xml 配置错了,我把 instrumentation 这块配置在了 application 模块里面了,改成在 manifest 中单独声明 Instrumentation 就可以了
希望对同样遇到这个问题的人有帮助

独行数息 关闭了讨论 05月13日 15:39
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册