concurrency
When using parallel
option, use concurrency
to limit the number of tests running concurrently.
The default value is the number of available cores (or os.availableParallelism()
if available) minus 1
. In watch mode, it uses half the number of available cores (or os.availableParallelism()
if available).
CLIβ
npx poku --parallel --concurrency=4 ./test
APIβ
await poku('./test', {
parallel: true,
concurrency: 4,
});
tip
To allow unlimited parallelism, set the value to 0
.