Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-724

Improve junit test integration - log harness information

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.4.0
    • tests
    • None
    • 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.

      Attachments

        1. ZOOKEEPER-724.patch
          274 kB
          Patrick D. Hunt

        Issue Links

          Activity

            People

              phunt Patrick D. Hunt
              phunt Patrick D. Hunt
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: