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

Issue a warning in case argLine is set in conjunction with forkCount=0

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.18.1
    • None
    • Maven Surefire Plugin
    • None

    Description

      I just spend some considerable amount of time figuring out why JaCoCo wouldn't work for a Maven project. The reason is that the JaCoCo Maven plugin sets the argLine property with a javaagent which causes the coverage to be generated and reported - but with forkCount being set to 0, the argLine parameter has no effect.

      Now hindsight is 20/20, but I think it would be helpful if surefire would simply report a warning in case the argLine property is set, but will not have an effect.
      I assume the same is true for the systemProperties, systemPropertiesFile, systemPropertyVariables, and maybe others.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebastiankirsch Sebastian Kirsch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: