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

forkNumber in systemPropertyVariables requires prefix

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.16
    • None
    • Maven Surefire Plugin
    • None

    Description

      The ${surefire.forkNumber} placeholder cannot be used alone in a systemPropertyVariable. The workaround is to prefix the value.

      For example, this doesn't work (the surefire.forkNumber system property does not exist when running the test).

        <systemPropertyVariables>
          <surefire.forkNumber>${surefire.forkNumber}</surefire.forkNumber>
        </systemPropertyVariables>
      

      But this does:

        <systemPropertyVariables>
          <surefire.forkNumber>0${surefire.forkNumber}</surefire.forkNumber>
        </systemPropertyVariables>
      

      (note the leading 0)

      Attachments

        Activity

          People

            Unassigned Unassigned
            ericacm Eric Pederson
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: