Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.16
-
None
-
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)