You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by shwetacf <sh...@kustommade.com> on 2017/08/21 10:10:06 UTC

Custom Junit test cases not running

Hi, 

I have created custom module in hot-deploy. I want to do the junit testing.
I wrote one test case and added the java class name in testdef xml file.
when I am running command "./gradlew test" , I am not getting any results. I
dont know how test cases runs in ofbiz and why nothing is showing while
running test cases. Please help me out on junit testing in ofbiz. 


Thanks 
Shweta



--
View this message in context: http://ofbiz.135035.n4.nabble.com/Custom-Junit-test-cases-not-running-tp4709949.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: Custom Junit test cases not running

Posted by Renuka Srishti <re...@gmail.com>.
Hii Shweta,

I think this link
<http://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk/README.md>
will help you.

On Mon, Aug 21, 2017 at 5:19 PM, shwetacf <sh...@kustommade.com> wrote:

> I used  ./gradlew testIntegration  and test cases were run. But test case
> for
> receiveInventory service is failing, I want to debug it. So is there any
> way
> to debug test the cases.
>
>
> Thanks
> Shweta
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.
> com/Custom-Junit-test-cases-not-running-tp4709949p4709956.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>

Re: Custom Junit test cases not running

Posted by shwetacf <sh...@kustommade.com>.
I used  ./gradlew testIntegration  and test cases were run. But test case for
receiveInventory service is failing, I want to debug it. So is there any way
to debug test the cases.


Thanks
Shweta



--
View this message in context: http://ofbiz.135035.n4.nabble.com/Custom-Junit-test-cases-not-running-tp4709949p4709956.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: Custom Junit test cases not running

Posted by Taher Alkhateeb <sl...@gmail.com>.
There are two kinds of tests: unit tests and integration tests. You are
using the command to run unit tests where you defined an integration test.
To run integration tests the command is ./gradlew testIntegration

On Aug 21, 2017 1:12 PM, "shwetacf" <sh...@kustommade.com> wrote:

> Hi,
>
> I have created custom module in hot-deploy. I want to do the junit testing.
> I wrote one test case and added the java class name in testdef xml file.
> when I am running command "./gradlew test" , I am not getting any results.
> I
> dont know how test cases runs in ofbiz and why nothing is showing while
> running test cases. Please help me out on junit testing in ofbiz.
>
>
> Thanks
> Shweta
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.
> com/Custom-Junit-test-cases-not-running-tp4709949.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>