- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 Eclipse Mars 4.5.2。为我的应用程序运行覆盖测试时,到目前为止,它有 317 个测试方法,当它即将完成时(运行大约 274 个方法),我遇到错误,我找不到解决方案。
首先是一个弹出窗口说:
No Coverage Data
No coverage data has been collected during this coverage session.
Please do not terminate the Java process manually from Eclipse.
第二个弹出窗口:
'com.mountainminds.eclemma.internal.core.launching.AgentServer' has encountered a problem. Error while dumping coverage date (code 5013).
[Details:] Error while dumping coverage data (code 5013). Connection reset
然后是以下控制台日志:
A fatal error has been detected by the Java Runtime Environment:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000005f9b96af, pid=2024, tid=3772
JRE version: Java(TM) SE Runtime Environment (8.0_66-b18) (build 1.8.0_66-b18) Java VM: Java HotSpot(TM) 64-Bit Server VM (25.66-b18 mixed mode windows-amd64 compressed oops) Problematic frame: V [jvm.dll+0x4b96af]
Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
An error report file with more information is saved as: X:\xxxxx\hs_err_pid2024.log
Compiler replay data is saved as: X:\xxxxx\replay_pid2024.log
If you would like to submit a bug report, please visit: http://bugreport.java.com/bugreport/crash.jsp
我已经为这个问题困扰了几个星期,而且正如我所说,我找不到任何解决方案,只有四五年前 EclEmma 网站上的类似错误报告。
我尝试为 JUnit 设置以下 JVM 参数:-Xms2g -Xmx2g
。
我的测试没有任何数据库连接、服务器连接或网络连接。他们也不发出任何 HTTP 请求。
我已经尝试重新安装 EclEmma 插件以及重新安装 Eclipse。问题仍然存在。
最佳答案
更新覆盖配置。转到 Arguments 部分并在 VM arguments 部分添加以下 perm size 参数:-XX:MaxPermSize=1225m
关于java - 覆盖 fatal error (EclEmma),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37212214/
我正在使用 eclEmma 插件来测试我的 gwt 应用程序的代码覆盖率。我为客户端代码编写了 jUnit 测试类,例如测试 get/set 方法等,以及 rpc 服务的 jUnit 测试。我使用“s
我在氧气版本上安装了 eclemma:Oxygen.3a 版本 (4.7.3a)Build id:20180405-1200 并且正在运行,但它似乎从菜单中消失了。 正在尝试更新,收到以下消息。删除并
我正在使用junit/eclemma;它工作得很好,除了我想指示 eclemma 忽略某些方法或类。例如,我将如何指示 eclemma 忽略 getter/setter。 提前致谢! 最佳答案 您可以
我正在使用 Eclipse-STS + EclEmma 插件来查看代码的覆盖范围。在我的所有抽象 util 类(仅包含静态方法)中,我在类定义行看到 3 个丢失的指令(指令计数器 报告): 红线左侧没
我正在尝试将 EclEmma 与 Eclipse 一起使用,但我无法让它工作。我看不到应该在覆盖模式下启动我的项目的按钮,在运行菜单中也没有这样的选项: 我已经尝试用我在 Internet 上找到的两
我没有达到 100% 的代码覆盖率,但我愿意。除非我看到 100% 的绿色,否则我想知道我忘了测试什么,去寻找只是基于工具而不是我的测试来找出愚蠢的东西让我远离它。然后我忘记了,不得不冲洗/重复。 虽
我有一个以以下开头的类: public class GeneralID implements WritableComparable{ ... } 还有一个是: public class LineVal
我遇到了在 Eclipse 中使用 EclEmma 插件的问题。 当我使用注释时,它不显示代码覆盖率 @RunWith路过(PowerMockRunner.class)作为论据。如果使用 (Mocki
所以我在 Eclipse 中使用 EclEmma 来生成 XML 覆盖率报告。看起来像这样: - - - - - -" line="3" desc="()V"> -
我有configured EclEmma not to instrument my unit tests效果很好。然而,编辑器仍然将测试代码突出显示为未覆盖。我不希望在单元测试中突出显示,因为它们没有
测试我的代码时我遇到了无法解释的事情。使用 eclemma 检查代码覆盖率我找到了 for-loop 的标题以黄色突出显示,消息内容为 "1 of 2 branches missing" . 代码行如
在覆盖结果中,它显示我已经覆盖了 9 条指令,而只有 5 行以绿色突出显示。其他 4 条指令是哪些? 最佳答案 单击 Coverage 框右上角的下拉箭头。它会给你一个 couple differen
我有 configured EclEmma not to instrument my unit tests效果很好。但是,编辑器仍然会突出显示未覆盖的测试代码。我不想在单元测试中突出显示,因为它们没有
我们在 JUnit 中使用 EasyMock 和 PowerMock。使用的覆盖工具是 ECLEmma。使用 EasyMock,它以绿色(如已覆盖)正确显示覆盖范围。但是,对于使用 PowerMock
我是第一次使用 EclEmma,我注意到我的主类的标题从未被覆盖。 main 方法中的所有内容都是绿色的,但 header 本身“public class Main”始终是红色的。 为了找到问题的根源
我有 Eclipse for Java Developer 4.3 和 m2e,eclemma,infinitest。我的项目使用带有 junit 4.11 的 Eclipse m2e。 我的目的是在
我认为eclemma是粗略估计我的测试覆盖率的好工具,但在报告中,它还会显示测试本身的覆盖率,这很烦人。有什么简单的方法可以禁用它(从而只显示程序代码覆盖率)吗? 最佳答案 假设您将测试用例保存在单独
我正在使用 Eclipse Mars 4.5.2。为我的应用程序运行覆盖测试时,到目前为止,它有 317 个测试方法,当它即将完成时(运行大约 274 个方法),我遇到错误,我找不到解决方案。 首先是
我正在尝试改进代码的行覆盖率。在我调用一个方法的地方执行了一行,该方法又会抛出异常。但是行覆盖显示红色,表示该行未执行。 代码: 1 public void myMethod(SomeService
代码覆盖率工具ECLEmma有一个奇怪的问题: 对于类(class)MyFirstLogger我写了测试类MyFirstLoggerTest : 请注意我在 MyFirstLoggerTest 中写道
我是一名优秀的程序员,十分优秀!