Parallel runner & Eclipse?
| Newsgroups | gmane.comp.java.junit.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, this may be somewhat out of scope, but I'm posting here anyway since I have tried other relevant places with no replies :) We have a company-internal JUnit 4 runner that can spawn multiple parallel "workers" to run our JUnit tests in parallel by dividing test classes between the workers (we would have liked to make it public, but company policy, yada yada). It has worked fine for years and gives a large speedup when we run the suite from commandline/ant. But with more recent versions of Eclipse and Java 8, even single-worker operation eats up nearly the entire CPU and Eclipse seems to spawn up an insane amount of threads to run JUnit tests. So using multiple workers only slows down the runtime from Eclipse since we're basically swapping between the threads. We have not managed to figure out exactly which version it happened and not sure if the problem existed with Java 7 or not, so I can't say if it is eclipse, java 8 or the eclipse junit plugin that is the bad guy. But since ant can take advantage of the parallelism on the same machine with the same java version, Eclipse seems like the culprit here. Is there anyone around here that has a clue if e.g. the Eclipse JUnit plugin has changed in a way that would cause this or if it is "base Eclipse" behavior. If anyone has some ideas on a workaround, that would be even better! BR, Chris ------------------------------------ Posted by: Chris <[email protected]> ------------------------------------