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

Enable Java assertions when running tests

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.19.0, 0.20.0
    • Fix Version/s: 2.7.0
    • Component/s: build
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      A suggestion to enable Java assertions in the project's build xml when running tests. I think this would improve the build quality.
      To enable assertions add the following snippets to the JUnit tasks in build.xml:

      <assertions>
      <enable />
      </assertions>


      For example:

      <junit ... >
      ...
      <assertions>
      <enable />
      </assertions>
      </junit>

        Attachments

        1. c4297_20140719.patch
          2 kB
          Tsz-wo Sze
        2. HADOOP-4297.patch
          1 kB
          Dhruba Borthakur
        3. HADOOP-4297.patch
          2 kB
          Yoram Kulbak

          Activity

            People

            • Assignee:
              szetszwo Tsz-wo Sze
              Reporter:
              ykulbak Yoram Kulbak
            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: