ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-724

Improve junit test integration - log harness information

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.0
    • Component/s: tests
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Currently we have ad-hoc logging (log4j) of setup/teardown and test start/end. Without this information it's often difficult to determine
      what's going on (major milestones) in the logs relative to the tests performed.

      In junit 4.x "@Rule" annotations have been added that allow this to be done much more easily. This patch will add this.

      In particular we can access the test name easily during setup/teardown and the test itself. Additionally we can log more information on
      success/failure of each test.

        Issue Links

          Activity

          Patrick Hunt created issue -
          Patrick Hunt made changes -
          Field Original Value New Value
          Attachment ZOOKEEPER-724.patch [ 12439635 ]
          Patrick Hunt made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Patrick Hunt made changes -
          Link This issue relates to ZOOKEEPER-725 [ ZOOKEEPER-725 ]
          Mahadev konar made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags [Reviewed]
          Resolution Fixed [ 1 ]
          Konstantin Boudnik made changes -
          Link This issue relates to HADOOP-6666 [ HADOOP-6666 ]
          Mahadev konar made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Patrick Hunt
              Reporter:
              Patrick Hunt
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development