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

Attila Sasvari commented on OOZIE-2838:
---------------------------------------

A lot of Oozie test classes inherit from XTestCase that sets up a lot of things 
(i.e. Oozie Services) that are not needed for the actuals validations. Right 
now an XTestCase does too many things. It sets up a lot of things in the 
filesystem and creates a Services object that instantiates XLogService, 
ConfigurationService, JPAService, StoreServices. As a result, to execute the 
complete set of tests takes more than 1 hour. Minimal set of services and file 
operations should be used for a test  (most of the time mocks/spys/powermock, 
etc. would help).  

It would be good to create an epic / umbrella JIRA to investigate various test 
improvements with subtasks. 

> TestClassUtils,TestJsonUtils,TestWritableUtils,TestXmlUtils shall not be an 
> Oozie  XTestCase
> --------------------------------------------------------------------------------------------
>
>                 Key: OOZIE-2838
>                 URL: https://issues.apache.org/jira/browse/OOZIE-2838
>             Project: Oozie
>          Issue Type: Improvement
>            Reporter: Attila Sasvari
>            Priority: Trivial
>         Attachments: OOZIE-2838.01.patch
>
>
> TestClassUtils,TestIOUtils,TestWritableUtils,TestXmlUtils (like TestIOUtils 
> covered by OOZIE-2835) unnecessary extend Oozie custom XTestCase / TestCase 
> that are intended for more complex tests.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to