cancel
Showing results for 
Search instead for 
Did you mean: 

How to run Junit in parallel mode in Hybris using unittests target of Hybris platform build.xml

Former Member
0 Kudos

Hello Experts,

In our project we have around 9000 junit test cases which are getting executed every time before generating the Build in Bamboo. This is a client requirement to execute all the junit test cases before generating the build. Because of thee large volume of unit tests, it is taking a long time to execute all the junit test cases. We are using unittests target of platform build.xml file to execut the junit test cases. This target is executing the junits in a sequential manner. Is there any way by which we cn make the junit execution in parallel mode using Hybris build.xml file?

This is bit critical and urgent. Please help me with your ideas.

Thanks in advance..

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member384558
Participant
0 Kudos

In Hybris OOTB there is the feature to split the tests with the ant-tasks, so that one case run the split tests in parallel. Maybe you can try it out ... Actually, I haven't tried to run the split tests parallel them, but would be curious to have known if you try it out, in particular regarding the test reports.

crescenzorega
Active Participant
0 Kudos

Try to see if it helps you

Parallel

Former Member
0 Kudos

Hi ,

Thanks for the reply.

I went through this ParallelComputer feature of Junit4, but not sure how we can integrate this parallelComputer with the Hybris OOTB build.xml file provided in platform.

Could you please assist with the steps?

crescenzorega
Active Participant
0 Kudos

junit 4 provides parallelization techniques, try to see this example

JUnit Run Tests in Parallel