ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-394

Converting JUnit tests into TestNG controlled environment

    Details

    • Type: Test Test
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 3.1.1
    • Fix Version/s: 3.3.0
    • Component/s: tests
    • Labels:
      None

      Description

      TestNG is a powerful test harness, which provides a lot of useful features like parallel test execution, test parametrization, and such.
      ZooKeeper uses JUnit (v.4.4) environment instead which certainly should help to ease the conversion

      I'd suggest to convert ZooKeeper's Junit based test infrastructure into TestNG controller environment, which will allow to achieve higher level of test execution control in the long run.

      The same conversion has been already performed for Avro project (see https://issues.apache.org/jira/browse/AVRO-26)

        Activity

        Hide
        Konstantin Boudnik added a comment -

        Here's few advantages of TestNG over JUnit:

        • tests parametrization
        • parallel execution of tests
        • dynamic tests grouping and lists combinations
        • TestCase inheritance isn't needed, e.g. more flexibility for tests developers
        • elaborate listeners APIs
        • data providers API is available for even more complex data and parameters preparation for test cases
        Show
        Konstantin Boudnik added a comment - Here's few advantages of TestNG over JUnit: tests parametrization parallel execution of tests dynamic tests grouping and lists combinations TestCase inheritance isn't needed, e.g. more flexibility for tests developers elaborate listeners APIs data providers API is available for even more complex data and parameters preparation for test cases
        Hide
        Patrick Hunt added a comment -

        not a blocker for 3.2, moving to 3.3

        Show
        Patrick Hunt added a comment - not a blocker for 3.2, moving to 3.3
        Hide
        Patrick Hunt added a comment -

        we will be staying with junit for the forseeable future. seems that not having "fork always" type functionality (which junit ant task has) was a blocker for hadoop at large (core/mr/hdfs/etc...)

        Show
        Patrick Hunt added a comment - we will be staying with junit for the forseeable future. seems that not having "fork always" type functionality (which junit ant task has) was a blocker for hadoop at large (core/mr/hdfs/etc...)

          People

          • Assignee:
            Konstantin Boudnik
            Reporter:
            Konstantin Boudnik
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development