Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-10570

Allow overrides of Surefire secondPartForkMode and testFailureIgnore

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
    • Minor
    • Resolution: Fixed
    • None
    • 0.96.2, 0.98.1, 0.99.0
    • None
    • None
    • Reviewed

    Description

      It can be useful to override the fork and ignore behavior of our Surefire unit testing machinery.

      For example, this will put only one test into each generated surefire jar and always fork a child JVM to run it:

      mvn test ... -Dsurefire.firstPartForkMode=always -Dsurefire.secondPartForkMode=always
      

      Useful for isolating test failures and finding zombies.

      Sometimes it is also useful to ignore test failures:

      mvn test ... -Dsurefire.testFailureIgnore=true
      

      This will let test suite execution continue even if a test times out. Maven has CLI options for this sort of thing but they don't always work as expected.

      Attachments

        Activity

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

          People

            apurtell Andrew Kyle Purtell Assign to me
            apurtell Andrew Kyle Purtell
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment