false code coverage reported using GwtMockito

孤街浪徒 提交于 2019-12-11 23:19:53

问题


Is there any reason why EclEmma(JaCoCo based) in Eclipse falsely reports the code coverage while using the GwtMockitoTestRunner?

Looking at it's source code, it does install it's own class loader and does byte code manipulation using the Javassist library. Could this affect the code coverage tool anyhow?


回答1:


It looks like the issue is that EclEmma/JaCoCo doesn't work well with final methods and with native methods(GWT JSNI code).

Fixing these methods everything returned to normal, the coverage is reported correctly.



来源:https://stackoverflow.com/questions/30050457/false-code-coverage-reported-using-gwtmockito

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!