sbt/main-actions/src/main
MkDev11 061145e67b
[2.x] Add testForkedParallelism setting for forked test thread count (#8453)
**Problems**

When running forked tests, sbt uses `Runtime.getRuntime().availableProcessors()` to determine the thread pool size, ignoring `concurrentRestrictions`. This is inconsistent with non-forked parallel tests.

**Expectations**

Users should be able to control the number of parallel test threads in forked mode, similar to how `concurrentRestrictions` works for non-forked tests.

**Notes**

Added a new setting `testForkedParallelism` that allows explicit control:

```scala
testForkedParallelism := Some(2)  // Use 2 threads
testForkedParallelism := None     // Use availableProcessors() (default)
```
2026-01-09 12:43:50 -05:00
..
contraband [sonatype publishing] print deployment validation errors if present 2025-08-04 15:03:53 +02:00
contraband-scala/sbt/internal/sona Apply Contraband 2025-09-28 21:28:21 -04:00
scala/sbt [2.x] Add testForkedParallelism setting for forked test thread count (#8453) 2026-01-09 12:43:50 -05:00