[jboss-user] [JBoss Tools Development] - How to Make Your JUnit Tests Run Faster in Eclipse

Denis Golovin do-not-reply at jboss.com
Tue Apr 6 14:56:52 EDT 2010


Denis Golovin [http://community.jboss.org/people/dgolovin] created the document:

"How to Make Your JUnit Tests Run Faster in Eclipse"

To view the document, visit: http://community.jboss.org/docs/DOC-15108

--------------------------------------------------------------
TBD: more tips and examples are comming (work is still in progress)

1. Consider mocking for eclipse interfaces rather trying to obtain real one from eclipse
2. Consider using core tests instead of ui tests, which is required to start eclipse workbench
3. If you need test project during test execution try to make it as simpler as it possible:* remove all unused jars and remove all unused classes from jars you need to make java indexing faster
* remove all builders from .project file that doesn't required in your test or disable them during runtime
* disable validation if your tests are not for validation issues
* disable java indexing if you cannot create test project without jars
* disable auto builder if you do not need to test incremental builder functionality

4. Try to reuse test projects between several tests to import it only ones during test execution. Use TestSetup wrapper to achieve this, because setUp and tearDown methods are executed before and after each test* methods in class.







--------------------------------------------------------------

Comment by going to Community
[http://community.jboss.org/docs/DOC-15108]

Create a new document in JBoss Tools Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&containerType=14&container=2129]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100406/fa5eb188/attachment.html 


More information about the jboss-user mailing list