Speed ​​up junit tests in ant build

I looked at our ant build project the other day and noticed that most of our junit tests run <0.2 seconds, but it takes ant 1-2 seconds to switch between them. This is probably the largest block of time in our typical assembly.

So, I was wondering if I created a test suite, would help remove the overhead for each test and just spend the overhead once for a whole block of tests? Also, does anyone have any better idea?

+4
source share
1 answer

I put fork="yes" in our junit tests to solve some kind of problem we were having a long time ago. I don’t remember what it was, but I just tried switching it to forkmode="once" in the Clemens board, and it reduced three minutes from our build time.

Thanks for the help.

+1
source

All Articles