Running each JUnit test in a separate JVM in Eclipse?

Posted by HenryR on Stack Overflow See other posts from Stack Overflow or by HenryR
Published on 2010-05-23T00:20:22Z Indexed on 2010/05/23 0:30 UTC
Read the original article Hit count: 713

Filed under:
|
|
|
|

I have a project with nearly 500 individual tests in around 200 test classes. Some of these tests don't do a great job of tearing down their own state after they're finished, and in Eclipse this results in some tests failing. The tests all pass when running the test suite from the command line via Ant.

Can I enable 'test isolation' somehow in Eclipse? I don't mind if it takes longer to run.

Long term, I will clean up the misbehaving tests, but in the short term I'd like to get the tests working.

© Stack Overflow or respective owner

Related posts about java

Related posts about eclipse