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

Tiago

03/18/2023, 9:00 PM
hello kotesters I’ve trying to play around with
parallelism
but no matter what the tests are still running sequentially 😕 could someone provide a working example of how to run multiples tests in parallel? thanks 🙂
I ’ve already tried:
Copy code
kotest.framework.parallelism=10
kotest.framework.spec.concurrent=10
kotest.framework.test.concurrent=10
kotest.framework.isolation.mode=InstancePerLeaf
test:
Copy code
class SomeTest : ExpectSpec({
    expect("something") {
...
    }

    expect("another thing") {
...
    }
})
e

Emil Kantis

03/18/2023, 9:16 PM
are you doing blocking operations inside the tests?
t

Tiago

03/18/2023, 9:37 PM
after removing
Copy code
kotest.framework.parallelism=10
kotest.framework.spec.concurrent=10
kotest.framework.test.concurrent=10
kotest.framework.isolation.mode=InstancePerLeaf
and using the configurations like:
Copy code
init {
    threads = 20
    concurrency = 20
    isolationMode = InstancePerTest

    // tests ....
}
the tests are now running in parallel but not the specs, they are still running in sequence
e

Emil Kantis

03/18/2023, 9:38 PM
What if you re-add kotest.framework.spec.concurrent=10
t

Tiago

03/18/2023, 9:39 PM
let me see
look like the problem is the IntelliJ plugin not updating the progress bar of concurrent specs
I placed the long lasting one first and could notice the logs from the other tests even that intellij says it is still running the first one
2 Views