Marc Knaup
12/12/2018, 1:04 PMit()
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?raniejade
12/15/2018, 4:28 PMraniejade
12/15/2018, 4:36 PMobject LargeTest: Spek({
repeat(27000) {
test("test $it") {
}
}
})
raniejade
12/15/2018, 4:42 PMraniejade
12/15/2018, 4:43 PMMarc Knaup
12/15/2018, 4:44 PM