Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-6987

Use JUnit Rule to optionally fail test cases that run more than 10 seconds

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.21.0
    • 0.22.0
    • test
    • None
    • Reviewed

    Description

      Using JUnit Rules annotations we can fail tests cases that take longer than 10 seconds (for instance) to run. This provides a regression check against test cases taking longer than they had previously due to unintended code changes, as well as provides a membership criteria for unit tests versus integration tests in HDFS and MR.

      Attachments

        1. HADOOP-6987-2.patch
          5 kB
          Jakob Homan
        2. HADOOP-6897.patch
          5 kB
          Jakob Homan

        Issue Links

          Activity

            People

              jghoman Jakob Homan
              jghoman Jakob Homan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: