Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-240

need to enableassertions when running tests.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • all

    Description

      My code relied heavily on the java1.4 assert command and my unit tests explicitly test based on those assetions.

      but when i run m2 test the surefire plugin does not execute with the -enableassertions turned on, so my tests fail.

      looking in the documentation for the surefire plugin on http://maven.apache.org/maven2/plugins/maven-surefire-plugin/test-mojo.html I see no way of setting that flag.

      could it please be added. this is areal blocker for me.

      dave

      Attachments

        Issue Links

          Activity

            People

              jvanzyl Jason van Zyl
              davesag Dave Sag
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: