ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mathieu Lirzin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OFBIZ-11067) Migrate integration tests to unit tests when possible
Date Sat, 25 May 2019 14:42:01 GMT

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

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

When trying to convert {{FlexibleMapAccessorsTests}} class to unit test, the {{testFlexibleMapAccessor}}
test fails, I will investigate more later.

> 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
>         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
>
>
> 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
(v7.6.3#76005)

Mime
View raw message