Hey everyone, Does anyone know if there is an easy...
# kotest
s
Hey everyone, Does anyone know if there is an easy way to profile how long tests take to run? I ran Gradle
--profile
, but that only shows the length of the whole suite. I'd like to generate a small report to see which tests take excessively long.
s
Something like this may work
Copy code
test {
  afterTest { descriptor, result ->
    def totalTime = result.endTime - result.startTime
    println "Total time of $descriptor.name was $totalTime"
  }
}
s
I need to run it on a couple of thousands of tests across several modules, actually still even using KotlinTest/Kotest :s Having a hard time migrating
s
What are you migrating to ?
s
We're still behind on KotlinTest for most of the Arrow codebase.
s
Ah ok.