I have a custom gradle plugin integrated with a re...
# kotest-contributors
s
I have a custom gradle plugin integrated with a revised version of the kotest intellij plugin: • You can run specs or individual tests through the gradle runner, so this respects all your gradle config • The intellij plugin executes a gradle task called "kotest" which does not use any of the gradle test task or junit plumbing • This gives us better control over reporting tests and durations in intellij as we don't need any junit workarounds (intellij itself is full of these workarounds when you delve into the code!) • I have full navigation working - you can click on any test result (at any level of nesting) and it will take you straight to the test • Currently this is JVM only but we can expand it to be JS and Native aware • When running the plugin outside of intellij you get much nicer output than the standard gradle test reporting (I think its really hard to find which tests sometimes)
very nice 1
🎉 1
e
Which branches? Would be happy to poke around in it.
Fixing navigation to all tests is massive imo.
s
Just local atm as it's all ugly while I figured it out
e
Maybe we should just release that and see what the response is to sidelining the normal gradle task
s
Yeah. Honestly after doing this I think it's ended up being way more simple than all our junit hacks.
Intellij has fantastic extension points for plugging into
👀 1
I haven't had to make any kotest framework changes either. So we can do this without requiring kotest 6
l
If we're moving away from the usual gradle execution, we'll probably have to figure something out for running Android tests
We don't officially support it, but it works without needing many tweaks
Our plugin today can't launch Android tests, but running them via Gradle is possible
s
We'll aim to support android from the plugin