On this page

Running tests in parallel 🔗

By default, Deder runs test classes serially within a single test JVM. This matches sbt (Test / testForkedParallel = false) and Mill (testForked), and avoids flakiness caused by tests that share mutable state (static fields, System.setProperty, security providers, etc.).

If your tests are safe to run concurrently within the same JVM, opt in per-module with the testParallelism field:

// deder.pkl — example for a Scala test module
testTemplate = (template.asTest()) {
  testParallelism = 8
  // ...
}

Supported on:

Default is 1 (serial). Valid range is 1 to 256.

When should I increase it? 🔗

Increase testParallelism only if all of the following hold for the module:

If unsure, leave it at 1. A single flaky test run is worth more than a few seconds saved.

When should I leave it at 1? 🔗

Trade-offs vs. multi-process parallelism 🔗

Intra-JVM parallelism only shares one JVM's warm-up cost. For larger test suites where you want process-level isolation too (like Mill's testParallel workers), that's tracked as future work in Deder.

⬅️ Run applications from Maven repositories Clean output artifacts ➡️