PowerMock ECLemma 覆盖问题 [英] PowerMock ECLEmma coverage issue

查看:27
本文介绍了PowerMock ECLemma 覆盖问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我们在 JUnit 中使用 EasyMock 和 PowerMock.使用的覆盖工具是 ECLemma.使用 EasyMock,它以绿色正确显示覆盖范围(如覆盖).但是,对于使用 PowerMock 进行单元测试的代码,覆盖率显示为红色(未覆盖).已经在网上阅读过类似的问题.但是,只是想检查是否有解决方案.


We are using EasyMock and PowerMock with JUnit. The coverage tool used is ECLEmma. With EasyMock, it shows the coverage properly in green (as covered). However, for the code that is unit tested with PowerMock, the coverage is shown in red (uncovered). Have read similar questions on the web. However, just wanted to check if there is a solution for this.

谢谢
文卡特斯

推荐答案

这是一个已知问题:https://github.com/jayway/powermock/issues/422

而且已经很久了,不会很快修复.

And it has been for a long time, it won't be fixed anytime soon.

我建议您改用 eCobertura.

这篇关于PowerMock ECLemma 覆盖问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆