ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Malin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OFBIZ-9996) Implement Groovy test in testtools
Date Wed, 22 Nov 2017 10:09:00 GMT
Nicolas Malin created OFBIZ-9996:

             Summary: 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

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 
        <groovy-test-suite name="simple" location="component://base/groovyScript/test/SimpleTests.groovy"/>

After some research and unfortunately result I found a first solution present with the linked

To test it just apply the patch and run : 
$ ./gradlew 'ofbiz --test component=base --test suitename=basetests '

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

View raw message