cancel
Showing results for 
Search instead for 
Did you mean: 

JUnit test case in storefront extension

Former Member
0 Kudos

Hi, I have created a Junit test class in storefront extension but i am not able to access the test case in http://localhost:9001/test/.My test class is not listed. Do we need any setting so that test is visible in the junit test web frontend.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi, I had exactly the same issue.

ant unittests -Dtestclasses.packages="de.hybris.custom.storefront.*" -Dtestclasses.web=true

did the trick, it seems that hybris ignores tests in /web/testsrc if the last parameter isn't passed

best regards

Joel

Answers (1)

Answers (1)

tsandhu
Participant
0 Kudos

Hi,

Please make sure that all needed extensions are enabled,and to initialize the JUnit tenant.Below is the link for more detail: https://wiki.hybris.com/display/release5/Testing+in+the+hybris+Commerce+Suite#TestinginthehybrisComm...

Here is the hybris Testweb Frontend - End User Guide: https://wiki.hybris.com/display/release5/hybris+Testweb+Frontend+-+End+User+Guide

Hope this help.

Thanks, Tajinder Singh.

Former Member
0 Kudos

I have done all this but for some reason my new test class is not listed in the TestWeb Frontend. Even the out of the box class like CartPageControllerTest inside storefront extension are not listed. Do we have any setting which we can enable or disable to include extension or class ?

tsandhu
Participant
0 Kudos

yes we have setting where we can enable or disable our extensions: In HAC go to Junit tenat --> view --> Configured extensions

You can enable/disable your extensions.