You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Mathieu Lirzin (Jira)" <ji...@apache.org> on 2019/10/26 21:49:00 UTC

[jira] [Commented] (OFBIZ-11067) Migrate integration tests to unit tests when possible

    [ https://issues.apache.org/jira/browse/OFBIZ-11067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16960440#comment-16960440 ] 

Mathieu Lirzin commented on OFBIZ-11067:
----------------------------------------

Committed  [^OFBIZ-11067_0018-Turn-UtilObjectTests-into-a-unit-test-class.patch]  in revision 1869022.
Committed  [^OFBIZ-11067_0019-Merge-UtilObjectUnitTest-into-UtilObjectTes.patch] in revision 1869023.

The remaining classes to convert to unit test before closing this ticket are:

* FlexibleStringExpanderTests
* FlexibleMapAccessorTests

> Migrate integration tests to unit tests when possible
> -----------------------------------------------------
>
>                 Key: OFBIZ-11067
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11067
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Mathieu Lirzin
>            Assignee: Mathieu Lirzin
>            Priority: Minor
>             Fix For: Upcoming Branch
>
>         Attachments: OFBIZ-11067_0001-Turn-UtilPropertiesTests-into-a-unit-test-c.patch, OFBIZ-11067_0002-Turn-ComparableRangeTests-into-a-unit-test-.patch, OFBIZ-11067_0003-Turn-DateTimeTests-into-a-unit-test-class.patch, OFBIZ-11067_0004-Turn-GenericMapTest-into-a-unit-test-class.patch, OFBIZ-11067_0005-Turn-IndentingWriterTests-into-a-unit-test-.patch, OFBIZ-11067_0006-Turn-MiscTests-into-a-unit-test-class.patch, OFBIZ-11067_0007-Turn-ObjectTypeTests-into-a-unit-test-class.patch, OFBIZ-11067_0008-Turn-ReferenceCleanerTests-into-a-unit-test.patch, OFBIZ-11067_0009-Turn-TimeDurationTests-into-a-unit-test-cla.patch, OFBIZ-11067_0010-Turn-UtilCacheTests-into-a-unit-test-class.patch, OFBIZ-11067_0011-Remove-empty-UtilHttpTests-class.patch, OFBIZ-11067_0012-Turn-UtilIOTests-into-a-unit-test-class.patch, OFBIZ-11067_0013-Turn-UtilMiscTests-into-a-unit-test-class.patch, OFBIZ-11067_0014-Turn-AssertTests-into-a-unit-test-class.patch, OFBIZ-11067_0015-Turn-BaseUnitTests-into-a-unit-test-class.patch, OFBIZ-11067_0016-Turn-TestBooleanConverters-into-a-unit-test.patch, OFBIZ-11067_0017-Turn-TestJSONConverters-into-a-unit-test-cl.patch, OFBIZ-11067_0018-Turn-UtilObjectTests-into-a-unit-test-class.patch, OFBIZ-11067_0019-Merge-UtilObjectUnitTest-into-UtilObjectTes.patch
>
>
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)