The benefits of Test-Driven Development (TDD) can be appealing to many seeking to reduce the amount of time spent on a software project, but not all projects can implement the TDD methodology fully. A technique similar to TDD -- test-oriented development and debugging -- is implemented as an Eclipse
... [More] plug-in to support this pragmatic approach so that it can help write high quality software.
ScreenshotsInvoking the 'Generate test(s)' actionYou invoke the context menu on or inside the method you wish to write a test for, and then select JUnit/Generate test(s).
Result of invoking test generationTODD will find the corresponding test class, open it in an editor and generate a test method for you. All you have to do then is fill in a few 'blanks' and run your new test, which you can do by invoking the Debug JUnit test(s) or Run JUnit test(s) actions in the same menu! [Less]
While programming, it often happens that a really neat and re-usable piece of code is written. It would be a mistake to leave it in the original project if it's easily made generic and re-usable, especially if you later find yourself needing to use that code and the only option is to copy-paste it
... [More] because the two code bases are totally separate. [Less]