gpt4 book ai didi

eclipse - EclEmma 不工作

转载 作者:行者123 更新时间:2023-12-02 04:42:44 25 4
gpt4 key购买 nike

我正在尝试将 EclEmma 与 Eclipse 一起使用,但我无法让它工作。我看不到应该在覆盖模式下启动我的项目的按钮,在运行菜单中也没有这样的选项:

我已经尝试用我在 Internet 上找到的两种方法修复它,但都没有用:

  • EclEmma 帮助页面说我应该在“自定义透视”对话框的“命令”选项卡上启用“覆盖”命令组,但对话框中没有这样的选项卡,现有选项卡中也没有“覆盖”命令组
  • 我试图在“窗口”>“首选项”>“常规”>“外观”>“标签装饰器”菜单中找到“Java 代码覆盖率”- 没有

我在 Windows 10 上使用 Eclipse Mars.2 Release (4.5.2),我通过 Eclipse Marketplace 安装了 EclEmma v. 2.3.3.201602231923(根据帮助 > 关于 Eclipse > 安装详细信息)。我不知道如何解决它,我将不胜感激任何帮助。

最佳答案

在 eclipse 4.9 (2018-9) 中,启用“Coverage as ...”命令的选项可以在“Customizing Perspective”(右键单击透视快捷方式)中找到,然后在选项卡页面“Action Set Availability”中找到:单击“Java 代码覆盖率”选项。

我遇到的另一个问题:虽然“Coverage as...”命令可用,但在 View “Coverage”中最后没有可见结果。可以按照 eclEmma FAQ 的建议解决问题。 :

The Coverage view stays empty and there is no source highlighting. Why?

In Eclipse preferences there is an option Launch in debug mode when workspace contains breakpoints under Run/Debug → Launching. If this option is enabled and there are breakpoints in your workspace coverage mode will not work, because it is automatically replaced with debug mode. Set this option to Never if you want to run code coverage analysis.

顺便说一句:我正在使用 eclEmma 插件 3.1.2

关于eclipse - EclEmma 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36105338/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com