Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-9996

Implement Groovy test in testtools

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Implemented
    • Trunk
    • 17.12.01
    • framework
    • None

    Description

      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 patch.

      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 !

      Attachments

        1. OFBIZ-9996.patch
          6 kB
          Nicolas Malin

        Issue Links

          Activity

            People

              nmalin Nicolas Malin
              nmalin Nicolas Malin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: