|
115 | 115 | encoding is necessary because forked unit test invocations |
116 | 116 | otherwise use the environment's file encoding. --> |
117 | 117 | -Dfile.encoding=${project.build.sourceEncoding} |
118 | | - <!-- This argument *can* be set through Surefire's |
119 | | - 'systemPropertyVariables' configuration setting, but by placing it |
120 | | - here it automatically also applies to the Failsafe plugin. To avoid |
121 | | - potential slowdown of tests relying on |
122 | | - `java.security.SecureRandom`, on Unix systems we use a |
123 | | - lower-quality source of randomness. Note that it is not fatal for |
124 | | - the file not to exist, so this setting is Windows-compatible. The |
125 | | - `/./` syntax is no accident; see |
126 | | - https://bugs.openjdk.java.net/browse/JDK-6202721 for details. --> |
127 | | - -Djava.security.egd=file:/dev/./urandom |
128 | | - <!-- On Mac OS X, running in headless mode prevents the forked JVMs |
129 | | - from showing up in the dock and capturing window focus. --> |
130 | | - -Djava.awt.headless=true |
131 | 118 | </argLine> |
132 | 119 | <!-- The maximum amount of heap memory available to forked Surefire |
133 | 120 | processes. Factored out into a separate property to allow overriding. --> |
|
1371 | 1358 | junit.platform.stacktrace.pruning.enabled=false</configurationParameters> |
1372 | 1359 | </properties> |
1373 | 1360 | <redirectTestOutputToFile>true</redirectTestOutputToFile> |
| 1361 | + <systemPropertyVariables> |
| 1362 | + <!-- On macOS, running in headless mode prevents |
| 1363 | + the forked JVMs from showing up in the dock and |
| 1364 | + capturing window focus. --> |
| 1365 | + <java.awt.headless>true</java.awt.headless> |
| 1366 | + <!-- On Unix systems we use a lower-quality source |
| 1367 | + of randomness, to avoid potential slowdown of tests |
| 1368 | + relying on `java.security.SecureRandom`. Note that |
| 1369 | + it is not fatal for the file to not exist, so this |
| 1370 | + setting is Windows-compatible. The `/./` syntax is |
| 1371 | + no accident; see |
| 1372 | + https://bugs.openjdk.java.net/browse/JDK-6202721 |
| 1373 | + for details. --> |
| 1374 | + <java.security.egd>file:/dev/./urandom</java.security.egd> |
| 1375 | + </systemPropertyVariables> |
1374 | 1376 | </configuration> |
1375 | 1377 | </plugin> |
1376 | 1378 | <plugin> |
|
0 commit comments