I am using Clover for IntelliJ IDEA plugin to get unit test coverage report. In my Swing application I have 4500 unit tests. When Clover reaches 1200 tests, it is throwing OutOfMemory errors. I increased the Xmx param to 1024Meg. Still no luck.
Any help to run all the tests in Clover would be highly appreciated.
The problem is not specific to code. I can individually run the tests successfully without Clover. Instead of running 4500 tests at a time I divided into 3 sets(3X1500). Whichever set I run, I am running into the memory problems. It must be something to do with Clover not able to handle volume of tests.
I'm not very familiar with Clover. However, what type of tests are you running? Do you use any large amounts of memory, like reading in large files or anything like that?
Maybe try to requesting a garbage collection after each test?
To gatorvip: Currently I have divided all tests into 3 test suites. This was done prior to using Clover to save time. My question is how does this division help? Clover gives me code coverage report of the final run test suite and not the combined test results.
To tbboyett: I cannot try putting System.gc() in each test class because of the large volume.