[jira] [Commented] (OFBIZ-9996) Implement Groovy test in testtools

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

[jira] [Commented] (OFBIZ-9996) Implement Groovy test in testtools

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-9996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16265710#comment-16265710 ]

Nicolas Malin commented on OFBIZ-9996:
--------------------------------------

Thanks Jacques to look it.

I tries yesterdays to implement the groovy DSL but unfortunately to use it the groovy script need to extends BaseScript class or the unit test extends GroovyTestCase. So I didn't solve it at this time.

I will commit the first step without DSL

> Implement Groovy test in testtools
> ----------------------------------
>
>                 Key: OFBIZ-9996
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9996
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Nicolas Malin
>            Assignee: Nicolas Malin
>         Attachments: OFBIZ-9996.patch
>
>
> With the minilang deprecation and the migration to groovy, I tried to implement on the ofbiz testtools the possibility to use groovy for integration test.
> My idea is to define a new element on test-suite.xsd like this
> {code}
>         <groovy-test-suite name="simple" location="component://base/groovyScript/test/SimpleTests.groovy"/>
> {code}
> After some research and unfortunately result I found a first solution present with the linked patch.
> To test it just apply the patch and run :
> {code}
> $ ./gradlew 'ofbiz --test component=base --test suitename=basetests '
> {code}
> This execute the basetest suite with the new groovy test suite present in base/groovyScript/test/SimpleTests.groovy
> I'm sure this code may be improve if you want how don't hesitate !



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)