Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
232 views
in Technique[技术] by (71.8m points)

java - Is it possible to run incremental/automated JUnit testing in Eclipse?

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

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You have to look at these plugins:

  • 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.

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...