>
>
> Is this really the time for the tests only or is this the whole build time
> including the test time? If it is only the time for running the tests it
> means those tests are slow...
>
>
Yeah.  I agree.  The slow ones are all essentially integration tests.

Some take 20-30 seconds as they involve things like stopping daemons like
zookoeeper / cassandra which just take a while.

At the 95th percentile all of our tests are <1ms


> Having a log file of the maven run available you can summarize the run
> time of the tests only by using something like this (on a linux like
> system):
>
> This will summarize the time for the tests only...
>
>
>
Yet another reason I love Teamcity... it does this automatically and has an
easy report :)


>
>> We use -T 16 on our tests and our boxes have 8 cores so this allows some
>> tests to block on IO while others execute.
>>
>
>
> -T 16 tries to parallellize the module build and not parallize the
> tests...furthermore I have my doubts that using -T 16 is faster than -T 4
> etc..
>
>
Yeah.. but the modules are running parallel so  you have as many parallel
tests as modules in that iteration.

Looking at our CPU we're pretty much at 100% across all our tests for the
entire time.


> I don't know how many modules you have in your build. If you have really
> many modules like 100+ it might be a good idea to consider using Smart
> Builder[1].
>
> If you like to parallize the unit tests themself you have to configure
> maven-surefire-plugin accordingly...I recommend reading the doc about that
> subject[2].
>

Ah.. interesting. Those changes should be incorporated back into maven
proper...

But we will try this out.  I think though in practice it won't make much of
a change for us.

We have like 200 modules and our build says nearly 100% the entire time.

Kevin

-- 

We’re hiring if you know of any awesome Java Devops or Linux Operations
Engineers!

Founder/CEO Spinn3r.com
Location: *San Francisco, CA*
blog: http://burtonator.wordpress.com
… or check out my Google+ profile
<https://plus.google.com/102718274791889610666/posts>

Reply via email to