Do you see any opportunities to speed up running t...
# kotest
r
Do you see any opportunities to speed up running tests via the plugin? I just profiled running a single test in a spec via the green arrow, and it’s taking 5.5 seconds before actually starting the test, mostly in classgraph scanning, which seems unnecessary as the class and test name are being sent to it as
--spec
and
--testpath
args to
io.kotest.engine.launcher.MainKt
in the first place.
This is with 4.6.3, so may be completely irrelevant as it looked like you did quite a rewrite for 5.0.0.
I see what causes it -
io.kotest.engine.config.detectConfig
does a classgraph scan unless you explicitly disable it with two system properties.
🆒 1
w
I had a wip to discover configs via service loaders
I had to shelve it because stuff, but I hope to pick it up soon now that 5.0 is released
That'd only work on JVM, but I think class graph also works on JVM only so