How to report concurrent junit tests?

Hi,
we've started using ConcurrentJunitRunner and ConcurrentSuite (which we found here  http://mycila.googlecode.com/svn/sandbox/src/main/java/com/mycila/sandbox/junit/runner/ConcurrentSuite.java) to run our junit tests in parallel. This drastically speeded up our builds but does not play well with TeamCity junit test reporting. I assume this is because TeamCity is not expecting interleaved RunListener messages (e.g. testStarted, testFinished) and this breaks the test reporting.
Any ideas how we can report number of tests and failures correctly ?

We are running the tests from Ant junit task and using TeamCity Enterprise 5.1.2 .

Cheers,
Chris Cottee

2 comments
Comment actions Permalink

Hi,

We are doing something similar, using the approach described in http://java.dzone.com/articles/concurrent-junit-tests, and our reports are as well broken. What we are seing is that TC is reporting tests as failed which actually have not failed with stacktraces from tests that actually failed. We cannot really trust the TC report view any more because of this.

Have you found any workaround or fix for this?

We are also running the tests with the Ant junit task and using TeamCity Enterprise 7.1.4 (build 24331).

-- John

0
Comment actions Permalink

Hi,
what we have ended up doing is relying on the junit test reports to show what has happened instead of relying on teamcity's test reporting. The junit reports seem to be unaffected by concurrent runs.

0

Please sign in to leave a comment.