[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] junit out of memory exceptions

When I run all unit tests of a very large project (many unit tests) than the available memory for the tests gets less and less. It seems that the test runner allocates for each test method an instance of the unit test classes and keeps it until the end of the whole test run. This plus the memory ´leaks´ in the our test cases fill up the memory and cause a out of memory exception while running the tests.
What to do:
- increase available memory size for the test run. Is there an ´option´ to set this for all test runs?
- remove our leaks (yes!)
- is it necessary to pre-allocate all the test classes and keep them until the end of the test run?