如何将 Coverage 配置保存到 Eclipse 中的右键单击菜单?

How to save Coverage configurations to right click menu in Eclipse?

我正在为我的一门大学课程开发 JUnit 测试,我遇到了一个问题,即我的覆盖率配置没有显示在 Eclipse 中右键单击菜单的 Coverage As 子菜单中。我看过的所有视频教程都在这个子菜单下显示了它们的配置,没有问题,所以我不确定问题是出在我安装的 Eclipse 上,还是我没有做正确的事情让它出现在那里。我被迫单击覆盖配置...选项,它会显示配置菜单,然后我可以在其中 select 我的配置 运行 覆盖。

我的 Eclipse 版本信息是: Java 开发人员的 Eclipse IDE(包括孵化组件) 版本:2021-09 (4.21.0) 内部版本号:20210910-1417 OS: Windows 10, v.10.0, x86_64 / win32 Java 供应商:甲骨文公司 Java 运行时间版本:15.0.2+7-27 Java版本:15.0.2

这个问题是由我安装的主题引起的,并按照 Howlger 给我的初始 post 留下的评论中提供的说明进行了修复。

The theme you have installed tries to cheat the Eclipse open source license by patching Eclipse at runtime (or to be more precise via loadtime weaving). This can cause issues and slow down Eclipse. Try with the current Eclipse (2021-09 is one release behind) without additional plugins and with a fresh workspace (deactivating or disabling of the theme might not be enough). If the issue persists, please show screenshots only of a built-in theme. – howlger