Commit 6f202a9
committed
Allow partly parallel Maven execution
This partly fixes Maven execution in parallel forks, because it postpones
evaluating of the rootFolder (`user.dir` value) until it is really needed
during execution. Without the fix the path could be evaluated in the main
process, meaning the `user.dir` is not set correctly to the tested module.
It still does not allow reusing of the forks (reuseForks parameter in
maven-surefire-plugin and maven-failsafe-plugin), but at least allows
parallel execution (forkCount greater than 1).
When reusing the forks, the SnapshotSystemJUnit5.finishedAllTests()
complains that it was called more than once, so the reuseForks has to
be disabled (set to false).
This partly fixes #551.
Signed-off-by: Oldřich Jedlička <[email protected]>1 parent 319a1b9 commit 6f202a9
File tree
3 files changed
+9
-5
lines changed- jvm
- selfie-runner-junit5/src/main/kotlin/com/diffplug/selfie/junit5
- selfie-runner-kotest/src/commonMain/kotlin/com/diffplug/selfie/kotest
3 files changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
36 | | - | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments