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?