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

TestIOUtils shall not be an XTestCase

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 5.0.0b1
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: