reevn
07/23/2020, 5:26 PMsam
07/23/2020, 5:44 PMsam
07/23/2020, 5:44 PMreevn
07/23/2020, 5:47 PMsam
07/23/2020, 5:51 PMreevn
07/23/2020, 6:13 PMparallelism = 4
in our Kotest project config and annotated the ~6 affected test files with DoNotParallelize
.
All the tests do indeed pass, but test execution time was about the same (even longer than before).
Are there any caveats to using this feature when using the gradle task to execute tests? From the run window it doesn't look like multiple specs are running at the same time, but that may be a limitation of Gradle?
Also worth mentioning a bit more than half of our tests are still JUnit 4, so in the grand scheme of things most things still are not parallelizable, but I think a difference should definitely be felt if everything works as expected.reevn
07/23/2020, 6:14 PMDescribeSpec
as we needed to override some things for our codebase until we have the new scoped callbacks in place.sam
07/23/2020, 6:17 PMsam
07/23/2020, 6:17 PMsam
07/23/2020, 6:17 PMreevn
07/23/2020, 6:21 PMparallelism
4, so it has to be working in some way at least. There just is no visual feedback in the run window that multiple specs are running and the rate at which tests pass is also pretty much the same as with one thread.
I haven't had much time to look into this yet, so I will spend some more time down the line figuring this stuff out.
Thanks again for your help!sam
07/23/2020, 6:33 PMsam
07/23/2020, 6:33 PMreevn
07/23/2020, 6:36 PMThe visual feedback is just a limitation of gradle's very poor junit5 supportThought so 👍
The time should definitely be faster you'd thinkYeah I'm not sure why I don't see any improvement. I will probably also try some stuff out on my side with some logs when I get the time
wasyl
07/23/2020, 8:32 PMsam
07/23/2020, 8:37 PMwasyl
07/23/2020, 8:37 PMsam
07/23/2020, 8:39 PMwasyl
07/23/2020, 8:40 PMExecuting tests [x seconds]
, and only at ~9 seconds it shows first Executing test <class>
output.wasyl
07/23/2020, 8:40 PMsam
07/23/2020, 8:41 PMsam
07/23/2020, 8:41 PMwasyl
07/23/2020, 8:41 PMwasyl
07/23/2020, 8:42 PMsam
07/23/2020, 8:43 PMsam
07/23/2020, 8:43 PMsam
07/23/2020, 8:44 PMsam
07/23/2020, 8:44 PMwasyl
07/23/2020, 8:44 PMsam
07/23/2020, 8:45 PMsam
07/23/2020, 8:45 PMwasyl
07/23/2020, 8:46 PMautoScanEnabled = false
, but I still see the same ~9 seconds delaysam
07/23/2020, 8:48 PMwasyl
07/23/2020, 8:51 PMsam
07/23/2020, 9:00 PM