I have to run Spring boot integration tests in parallel to reduce the time as they took quite a few minutes right now. When I use maxParallelForks they run in parallel but the issue is since they are Spring boot tests they are setting up the context and due to memory sharing they are failing? I have tried to search online a lot but still unsuccessful to run them in parallel in a separate process, or in a way that they do not share the memory anymore.

Is there any way to do that and yes what would be the best approach to do that?

0 Answers