Ola Adolfsson
05/28/2024, 7:05 AMEdoardo Luppi
05/28/2024, 8:01 AMjsTest and jsNodeTest taskIIRC
jsTest
automatically "wraps" tests for Node.js or the browser, depending on what you have activated. jsNodeTest
is the more fine grained task.
takes 9 min to completeGiven JVM takes 6 minutes, this doesn't look * that * bad. But you might want to first understand which test(s) is taking longer than what you'd expect.
Ola Adolfsson
05/28/2024, 9:44 AMEdoardo Luppi
05/28/2024, 9:45 AMEdoardo Luppi
05/28/2024, 9:45 AMOla Adolfsson
05/28/2024, 9:46 AMOla Adolfsson
05/28/2024, 9:46 AMEdoardo Luppi
05/28/2024, 9:50 AMEdoardo Luppi
05/28/2024, 9:51 AMEdoardo Luppi
05/28/2024, 9:58 AMKotlinMocha
sources, and AFAIU there is no way to specify additional CLI args for Mocha.
Looking at https://mochajs.org/#parallel-tests tho, I'm not sure the custom Kotlin --reporter
supports parallel mode.
@Ilya Goncharov [JB] might know more about what the K/JS Mocha test runner supportsIlya Goncharov [JB]
05/28/2024, 10:07 AMpackage.json
.
I didn’t test with parallel mode, but in limitations I don’t see problems for our reporter
https://mochajs.org/#configuring-mocha-nodejsEdoardo Luppi
05/28/2024, 10:12 AMproject.json
way is the quickest way to try it out.Ola Adolfsson
05/28/2024, 10:39 AMOla Adolfsson
05/28/2024, 10:43 AMEdoardo Luppi
05/28/2024, 10:46 AMcompilations.configureEach {
packageJson {
customField("mocha", "...")
}
}
Ilya Goncharov [JB]
05/28/2024, 10:53 AMdoLast
of packageJson
task or testPackageJson
But for most cases customField
is enoughOla Adolfsson
05/28/2024, 10:55 AMcompilations.configureEach{
packageJson{
customField("mocha", "parallel:true")
}
}
Edoardo Luppi
05/28/2024, 11:04 AMcustomField("mocha", mapOf("parallel" to true))
So that it results in
"mocha": {
"parallel": true
}
Try it out.Ola Adolfsson
05/28/2024, 11:06 AMOla Adolfsson
05/28/2024, 11:50 AM