是否可以在 Eclipse 中运行增量/自动化 JUnit 测试? [英] Is it possible to run incremental/automated JUnit testing in Eclipse?

查看:25
本文介绍了是否可以在 Eclipse 中运行增量/自动化 JUnit 测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Eclipse 支持增量编译.如果我保存一个源文件,那么它将编译修改后的文件.

Eclipse support incremental compiling. If I save a source file then it will compile the modified files.

在这样的增量编译之后是否也可以运行相同包的 JUnit 测试并在错误视图中显示失败.然后我可以在同一个视图中看到 JUnit 测试失败和编译错误,而无需额外的操作.有什么插件可以做到吗?

Is it possible after such incremental compile also to run the JUnit tests of the same package and show the fail in the error view. Then I can see the JUnit test failing and compiling errors in the same view without extra action. Are there any plugins that can do it?

推荐答案

你必须看看这些插件:

  • JUnit Max:不是免费的,由 Kent Benk(TDD 实践背后的人之一)开发;
  • MoreUnit:免费,但主要致力于帮助您编写测试;
  • Infinitest:现在免费,此插件专用于运行与您刚刚修改的文件相关的测试.
  • JUnit Max: Not free, developed by Kent Benk (one of the men behind the TDD practice);
  • MoreUnit: Free, but essentially dedicated to help you write the tests;
  • Infinitest: Now free, this plugin is dedicated to run the tests related to the files you have just modified.

所以根据你的需求,我建议你安装 MoreUnit 和 Infinitest 插件.

So regarding your needs, I suggest that you install MoreUnit and Infinitest plugins.

这篇关于是否可以在 Eclipse 中运行增量/自动化 JUnit 测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆