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

Enable Java assertions when running tests

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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. HADOOP-4297.patch
          2 kB
          Yoram Kulbak
        2. HADOOP-4297.patch
          1 kB
          Dhruba Borthakur
        3. c4297_20140719.patch
          2 kB
          Tsz-wo Sze

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment