https://kotlinlang.org logo
#kotest
Title
# kotest
m

Mervyn McCreight

03/03/2024, 12:17 PM
Hey 🙂 What is the maximum amount or parallelism I can configure for running my KoTest tests and how do I achieve that? Best would be to run all Specs in parallel, and inside the specs run all tests in parallel as well. I tried playing around with the configurations:
parallelism
,
concurrentSpecs
and
concurrentTests
, but somehow I didn't achieve this. There might also be a misunderstanding on my side on what
concurrentTests
treats as a test - i'd expect it to try to run every leaf in parallel inside a spec, is that a wrong assumption?
e

Emil Kantis

03/03/2024, 1:18 PM
You should probably aim for parallelism approximately equal to your amount of logical CPU cores. Unless you have a lot of suspensions etc happening
m

Mervyn McCreight

03/03/2024, 2:51 PM
seems fair. so with that much amount of parallelism as a goal is it possible to distribute this level parallelism not only on spec, but also on test level? 🤔
2 Views