Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-2835

TestIOUtils shall not be an XTestCase

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0b1
    • Component/s: None
    • Labels:
      None

      Description

      TestIOUtils unnecessary extends XTestCase that makes the execution time of the test case really long:

      Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 20.675 sec
      
      Results :
      
      Tests run: 4, Failures: 0, Errors: 0, Skipped: 0
      

      XTestCase sets up Oozie services which is not needed for testing IOUtils, that's why it takes ~20 seconds.

      If we make TestIOUtils a true unit test class, the execution time of the tests could be drastically reduced:

      Running org.apache.oozie.util.TestIOUtils
      Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec
      
      Results :
      
      Tests run: 4, Failures: 0, Errors: 0, Skipped: 0
      

        Attachments

        1. OOZIE-2835.01.patch
          2 kB
          Attila Sasvári
        2. OOZIE-2835.02.patch
          2 kB
          Attila Sasvári

          Issue Links

            Activity

              People

              • Assignee:
                asasvari Attila Sasvári
                Reporter:
                asasvari Attila Sasvári
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: