Custom Junit test cases not running

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Custom Junit test cases not running

shwetacf
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
Reply | Threaded
Open this post in threaded view
|

Re: Custom Junit test cases not running

taher
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" <[hidden email]> 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.
>
Reply | Threaded
Open this post in threaded view
|

Re: Custom Junit test cases not running

shwetacf
This post was updated on .
I used  ./gradlew testIntegration  and test cases were run. But test case for receiveInventoryProduct service is failing, I want to debug it. So is there any way to debug test the cases.


Thanks
Shweta
Reply | Threaded
Open this post in threaded view
|

Re: Custom Junit test cases not running

Renuka Srishti-2
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 <[hidden email]> 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.
>