Came across the interesting Eclipse plug-in Infinitest, which on change of a source java file, runs the unit tests corresponding to that class.
If your class has good unit test coverage, you'll get to know the potential effect of your change on other dependant functionalities as soon as you save your changes on local.
You don't need to wait till you
1) Build your project to see the breaking unit tests and
2) Do functional test to identify if your changes impact any other functionality (provided your class has good unit tests).
To add this plug-in to eclipse, just add the update site: http://infinitest.github.com
For more details, example video, you can verify this blog --> http://www.vasanth.in/2011/06/03/infinitest-a-continuous-test-runner-for-java/
Additional links:
http://infinitest.github.com/index.html
http://improvingworks.com/
Copy paste of text from Vasanth's blog:
Infinitest is an Eclipse plugin that runs the JUnit tests instantly when you save a Java file. Check out the demo above. It smartly runs only the test affected by the file you just saved. This is cool. You can immediately know if you broke something as soon as you save your code. Of course, your test cases should be comprehensive. Improving Works developed this plugin and has released it as a open source project.
No comments:
Post a Comment