on 02-08-2018 9:53 AM
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..
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try to see if it helps you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
junit 4 provides parallelization techniques, try to see this example
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.