有没有办法在Eclipse中运行测试时使用自定义JUnit Test Runner?

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

编辑收到我给JMockit dev的电子邮件的以下答案:

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.

不幸的是,这仍然不适合我.有没有人让增量测试运行器工作?

最佳答案 它对我有用,你需要运行测试正常方式,而不是去测试的Run和属性并用jmockit补丁输入值(jar的路径)

点赞