hello kotesters I’ve trying to play around with `p...
# kotest
t
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
are you doing blocking operations inside the tests?
t
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
What if you re-add kotest.framework.spec.concurrent=10
t
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