So, a Spek which generates 27,000 `it()` blocks is...
# spek
m
So, a Spek which generates 27,000
it()
blocks is horribly slow when run with Gradle+JUnit (15min) but quite fast when run from IntelliJ using the Spek Framework plugin (2sec). I guess JUnit is doing some setup & teardown behind the scenes for each test generated by
it()
. How can I optimize that? Is there a setting in Spek which it passes on to JUnit to tell it to e.g. reuse test container? Or do I need to configure JUnit separately somehow?
r
can you share here a sample test?
nvm, replicated with this:
Copy code
object LargeTest: Spek({
    repeat(27000) {
        test("test $it") {

        }
    }
})
and sorry for the delayed reply!
m
No worries, thanks for checking and fixing! 👍