OFBiz
  1. OFBiz
  2. OFBIZ-3670

TestCase base classes providing ability to execute unit tests in Eclipse in "standalone" mode

    Details

    • Type: Improvement Improvement
    • Status: Patch Available
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: SVN trunk
    • Fix Version/s: SVN trunk
    • Component/s: framework
    • Labels:
      None

      Description

      This patch provides the framework that allows junit unit tests to be executed directly in Eclipse (without having to invoke Start directly). It total it contains:

      • BaseTestCase - very top of the TestCase stack containing ofbiz specific assertions
      • StandaloneTestCase - determines if application has executed "Start"; if not it will execute a scaled down "Start unittest" that is used in Eclipse
      • RollbackTestCase - extends standalone and provides a transaction w/ auto-rollback
      • TestRunContainer - provides ability to disable dispatcher attributes via configuration (used for unittest-containers.xml)
      • GeoWorkerTest - unittester that provides "full" coverage of GeoWorker; can be executed from Eclipse or from command-line as it is plugged into standard testdef framework. Creates its own entities with transaction start/rollback so it can be re-executed.

      Would appreciate if this can be a priority so I can provide additional test cases to boost our code coverage that will utilize these features.

        Issue Links

          Activity

          Gavin made changes -
          Link This issue is depended upon by OFBIZ-3691 [ OFBIZ-3691 ]
          Gavin made changes -
          Link This issue blocks OFBIZ-3691 [ OFBIZ-3691 ]
          Scott Gray made changes -
          Assignee Scott Gray [ lektran ]
          Scott Gray made changes -
          Link This issue blocks OFBIZ-3691 [ OFBIZ-3691 ]
          Bob Morley made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Bob Morley made changes -
          Field Original Value New Value
          Attachment OFBIZ-3670_StandaloneTestEnhancement.patch [ 12441379 ]
          Bob Morley created issue -

            People

            • Assignee:
              Scott Gray
              Reporter:
              Bob Morley
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Development