Running the build with tests is a very long process; sometimes a multithread build can be problematic, and running the full build is over half an hour on commodity hardware.
Some unit tests wait an inordinate amount of time and do not need to be run as part of the normal build. I've started to identify some of these tests just via repeated runs. Either they should be moved to the integration tests profile, or a new profile / JUnit category to be run only when necessary.
A quick collection of significantly longer tests shows the possibility of >6 minutes shaved off the build.
- TestTailFile 18s
- TestPostHTTP 35s
- TestListFile 58s
- TestListenUDP 39s
- TestInvokeHttpTwoWaySSL 67s
- TestInvokeHttpSSL 67s
- TestInvokeHttp 10s
- TestGetHTTP 35s
- TestRELPSocketChannelHandler 36s
- DBCPServiceTest 37s
=>400 seconds = 6+ minutes saved