Available in the recent beta version npm i @currents/playwright@beta
(@currents/[email protected]
)
It is recommended to set batchSize = workers
- Use
--pwc-batch-size
CLI params, e.g.:pwc-p --pwc-batch-size=3
- Set environment variable
CURRENTS_BATCH_SIZE
e.g.:CURRENTS_BATCH_SIZE=3
- Set the values in
currents.confg.ts
, e.g.:orchestration.batchSize: 3
- 40 long-running tests: 110-120s
- 40 short tests: 10-30s
- workers: 2
- machines: 5
- overall duration: 15m 38s 🐌
- batch size: 2
- workers: 2
- machines: 5
- overall duration: 9m 17s (~41% improvement) 🏎️