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

Migrate integration tests to unit tests when possible

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Trunk
    • Fix Version/s: Upcoming Branch
    • Component/s: framework
    • Labels:
      None
    • Sprint:
      OFBiz Community Day (May 2019)

      Description

      In OFBiz there are both unit tests and integration tests which are respectively run by ./gradlew test and ./gradlew testIntegration. However some integration tests are in fact unit tests that doesn't depend on the entity and service engines. Those unit tests should run on the their appropriate task.

      To do that it is necessary to convert them to use Junit4 instead of Junit3 which is what is done for the integration test suite.

        Attachments

        1. OFBIZ-11067_0017-Turn-TestJSONConverters-into-a-unit-test-cl.patch
          5 kB
          Mathieu Lirzin
        2. OFBIZ-11067_0016-Turn-TestBooleanConverters-into-a-unit-test.patch
          5 kB
          Mathieu Lirzin
        3. OFBIZ-11067_0015-Turn-BaseUnitTests-into-a-unit-test-class.patch
          5 kB
          Mathieu Lirzin
        4. OFBIZ-11067_0014-Turn-AssertTests-into-a-unit-test-class.patch
          3 kB
          Mathieu Lirzin
        5. OFBIZ-11067_0013-Turn-UtilMiscTests-into-a-unit-test-class.patch
          3 kB
          Mathieu Lirzin
        6. OFBIZ-11067_0012-Turn-UtilIOTests-into-a-unit-test-class.patch
          5 kB
          Mathieu Lirzin
        7. OFBIZ-11067_0011-Remove-empty-UtilHttpTests-class.patch
          3 kB
          Mathieu Lirzin
        8. OFBIZ-11067_0010-Turn-UtilCacheTests-into-a-unit-test-class.patch
          14 kB
          Mathieu Lirzin
        9. OFBIZ-11067_0009-Turn-TimeDurationTests-into-a-unit-test-cla.patch
          13 kB
          Mathieu Lirzin
        10. OFBIZ-11067_0008-Turn-ReferenceCleanerTests-into-a-unit-test.patch
          4 kB
          Mathieu Lirzin
        11. OFBIZ-11067_0007-Turn-ObjectTypeTests-into-a-unit-test-class.patch
          65 kB
          Mathieu Lirzin
        12. OFBIZ-11067_0006-Turn-MiscTests-into-a-unit-test-class.patch
          4 kB
          Mathieu Lirzin
        13. OFBIZ-11067_0005-Turn-IndentingWriterTests-into-a-unit-test-.patch
          4 kB
          Mathieu Lirzin
        14. OFBIZ-11067_0004-Turn-GenericMapTest-into-a-unit-test-class.patch
          3 kB
          Mathieu Lirzin
        15. OFBIZ-11067_0003-Turn-DateTimeTests-into-a-unit-test-class.patch
          4 kB
          Mathieu Lirzin
        16. OFBIZ-11067_0002-Turn-ComparableRangeTests-into-a-unit-test-.patch
          4 kB
          Mathieu Lirzin
        17. OFBIZ-11067_0001-Turn-UtilPropertiesTests-into-a-unit-test-c.patch
          5 kB
          Mathieu Lirzin

          Activity

            People

            • Assignee:
              mthl Mathieu Lirzin
              Reporter:
              mthl Mathieu Lirzin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: