Skip to Content
author's profile photo Former Member
Former Member

JUnit test case in storefront extension

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2015 at 12:24 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 12, 2015 at 07:14 PM

    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#TestinginthehybrisCommerceSuite-ExecutingTests

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.