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

Migrate integration tests to unit tests when possible

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Trunk, Upcoming Branch
    • Upcoming Branch
    • framework
    • None
    • 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_0001-Turn-UtilPropertiesTests-into-a-unit-test-c.patch
          5 kB
          Mathieu Lirzin
        2. OFBIZ-11067_0002-Turn-ComparableRangeTests-into-a-unit-test-.patch
          4 kB
          Mathieu Lirzin
        3. OFBIZ-11067_0003-Turn-DateTimeTests-into-a-unit-test-class.patch
          4 kB
          Mathieu Lirzin
        4. OFBIZ-11067_0004-Turn-GenericMapTest-into-a-unit-test-class.patch
          3 kB
          Mathieu Lirzin
        5. OFBIZ-11067_0005-Turn-IndentingWriterTests-into-a-unit-test-.patch
          4 kB
          Mathieu Lirzin
        6. OFBIZ-11067_0006-Turn-MiscTests-into-a-unit-test-class.patch
          4 kB
          Mathieu Lirzin
        7. OFBIZ-11067_0007-Turn-ObjectTypeTests-into-a-unit-test-class.patch
          65 kB
          Mathieu Lirzin
        8. OFBIZ-11067_0008-Turn-ReferenceCleanerTests-into-a-unit-test.patch
          4 kB
          Mathieu Lirzin
        9. OFBIZ-11067_0009-Turn-TimeDurationTests-into-a-unit-test-cla.patch
          13 kB
          Mathieu Lirzin
        10. OFBIZ-11067_0010-Turn-UtilCacheTests-into-a-unit-test-class.patch
          14 kB
          Mathieu Lirzin
        11. OFBIZ-11067_0011-Remove-empty-UtilHttpTests-class.patch
          3 kB
          Mathieu Lirzin
        12. OFBIZ-11067_0012-Turn-UtilIOTests-into-a-unit-test-class.patch
          5 kB
          Mathieu Lirzin
        13. OFBIZ-11067_0013-Turn-UtilMiscTests-into-a-unit-test-class.patch
          3 kB
          Mathieu Lirzin
        14. OFBIZ-11067_0014-Turn-AssertTests-into-a-unit-test-class.patch
          3 kB
          Mathieu Lirzin
        15. OFBIZ-11067_0015-Turn-BaseUnitTests-into-a-unit-test-class.patch
          5 kB
          Mathieu Lirzin
        16. OFBIZ-11067_0016-Turn-TestBooleanConverters-into-a-unit-test.patch
          5 kB
          Mathieu Lirzin
        17. OFBIZ-11067_0017-Turn-TestJSONConverters-into-a-unit-test-cl.patch
          5 kB
          Mathieu Lirzin
        18. OFBIZ-11067_0018-Turn-UtilObjectTests-into-a-unit-test-class.patch
          12 kB
          Mathieu Lirzin
        19. OFBIZ-11067_0019-Merge-UtilObjectUnitTest-into-UtilObjectTes.patch
          8 kB
          Mathieu Lirzin
        20. OFBIZ-11067_fixes_FlexibleStringExpanderTests_and_FlexibleMapAcessor_tests.patch
          6 kB
          Gaetan Chaboussie
        21. OFBIZ-11067_fixes_FlexibleStringExpanderTests_and_FlexibleMapAcessor_tests-1.patch
          6 kB
          Gaetan Chaboussie
        22. OFBIZ-11067_turns_FlexibleMapAccessorTests_and_FlexibleStringExpanderTests_into_unit_tests.patch
          2 kB
          Gaetan Chaboussie
        23. OFBIZ-11067_turns_FlexibleMapAccessorTests_and_FlexibleStringExpanderTests_into_unit_tests-1.patch
          2 kB
          Gaetan Chaboussie
        24. Patch_with_FlexibleMapAccessorTests_included_that_was_forgotten_in_the_previous_patch.patch
          62 kB
          Gaetan Chaboussie

        Activity

          People

            pgil Gil Portenseigne
            mthl Mathieu Lirzin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: