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

Enable Java assertions when running tests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.19.0, 0.20.0
    • 2.7.0
    • build
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: