Make tests andmodules compile and run in parallel

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Make tests andmodules compile and run in parallel

lcestari
Hi guys, I found some interesting features that could help to build and test lightblue faster -> https://maven.apache.org/surefire/maven-surefire-plugin/examples/fork-options-and-parallel-execution.html

What do you think guys?

Regards,
Luan
Reply | Threaded
Open this post in threaded view
|

Re: Make tests andmodules compile and run in parallel

jewzaam
Administrator

Sounds like something worth trying. Often only an issue if resources are constrained or if some quirk with shared state across tests pops up. Can try builds locally for the later, wondering how in memory databases will function.

Reply | Threaded
Open this post in threaded view
|

Re: Make tests andmodules compile and run in parallel

lcestari
Yeah, we should first try a couple times in a local machine before pushing it to the remote repo.

About the embedded databases,  some of them would need changes, for example the mongodb uses the same TCP port is a lot of unit/integration tests, that could be changed to use a different port to avoid conflicts between concurrent tests.