PowerMock ECLEmma覆盖问题

编程入门 行业动态 更新时间:2024-10-20 15:58:44
本文介绍了PowerMock ECLEmma覆盖问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我们正在使用EasyMock和PowerMock和JUnit。使用的覆盖工具是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.

谢谢 Venkatesh

Thanks Venkatesh

推荐答案

这是一个众所周知的问题: https:// github / jayway / powermock / issues / 422

It's a known problem : github/jayway/powermock/issues/422

它已经很长一段时间了,不会很快修复。

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

我建议您改用 eCobertura 。

更多推荐

PowerMock ECLEmma覆盖问题

本文发布于:2023-10-31 04:23:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1544991.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:PowerMock   ECLEmma

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!