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

Migrate integration tests to unit tests when possible

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Trunk, Upcoming Branch
    • None
    • 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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            mthl Mathieu Lirzin (Inactive)

            Dates

              Created:
              Updated:

              Agile

                Completed Sprint:
                OFBiz Community Day (May 2019) ended 30/May/19
                View on Board

                Slack

                  Issue deployment