eclipse - 在 Eclipse 中运行测试时是否可以使用自定义 JUnit 测试运行器?

标签 eclipse junit jmockit

我想使用JMockit的增量测试运行程序而不是 Eclipse 中的标准 JUnit 测试运行程序。有办法做到这一点吗?

编辑收到了我发给 JMockit 开发人员的电子邮件的以下答复:

You would need to start the JVM with a command line such as "-javaagent:jmockit.jar=incjunit4", where "incjunit4" specifies that the external tool for incremental JUnit tests be loaded. The coverage tool must also be used, because it provides the necessary runtime information to the incremental test tool. In fact, there is no documentation about that, mainly because this feature is not fully developed yet.

不幸的是,这对我来说仍然不起作用。有人让增量测试运行程序正常工作吗?

最佳答案

它对我有用,您需要以正常方式运行测试,而不是转到该测试的“运行”和属性并使用 jmockit 补丁(jar 的路径)输入值

关于eclipse - 在 Eclipse 中运行测试时是否可以使用自定义 JUnit 测试运行器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/211659/

相关文章:

java - 将 maven-gae 和 google 插件用于 eclipse (GPE) 时出错

java - 将 @DataProvider 与 Jmockit 一起使用

android - Eclipse 认为我的 Android 项目有问题

eclipse - 如何在 IntelliJ IDEA 中运行 Eclipse 启动器文件?

java - 为什么我的 Junit-AssertionError-Test 失败?

windows - 在 Weblogic 中使用本地版本的 ANT 和 JUNIT 运行 ant build

java - 为 JUnit 创建自己的 @Test 注释

java - JVMJ9VM007E 命令行选项无法识别 : -javaagent

java - 使用 JMockit 模拟 ResourceLoading

java - Eclipse Java 项目和 Maven 的多个源文件夹