kotest-intellij-plugin icon indicating copy to clipboard operation
kotest-intellij-plugin copied to clipboard

Support Bazel

Open nikunjy opened this issue 3 years ago • 3 comments

This plugin works amazing with gradle. Is it possible to extend this to get it to work with Bazel.

Plugin already does the heavy lift of identifying the specs and test.

If it could be easily extended to pass custom arguments to a bazel invocation it would work. So if you click on a test it would run

bazel test //blah --test_arg=kotest.filter.spec=Foo*

I can make our bazel launcher support whatever arguments via kotest launcher but don't know where to start on extending this plugin. Is this something that is doable or very non trivial.

nikunjy avatar Sep 02 '22 07:09 nikunjy

If we end up landing the PR https://github.com/kotest/kotest/pull/3200 referenced in https://github.com/kotest/kotest/issues/2416

We can select single tests and run them in bazel but don't know how it will get wired to the bazel invocation from the IDE. I am thinking if there is a way to make it so that this plugin doesn't care about the underlying runner and provides it to be pluggable.

nikunjy avatar Sep 02 '22 15:09 nikunjy

Pinging the author @sksamuel
I am happy to extend this plugin. But want to hear your thoughts if this even makes sense for the plugin.

nikunjy avatar Sep 13 '22 02:09 nikunjy

@nikunjy Happy to evaluate a PR :)

sksamuel avatar Sep 26 '22 12:09 sksamuel

Is it possible to write a rough architecture of code for this @sksamuel and some other guidance on CONTRIBUTING.md on how to best test/debug this plugin. Would really help me and I think many others who might be interested in contributing to this codebase.

I know you are busy but can't hurt to ask 😄

nikunjy avatar Dec 08 '22 22:12 nikunjy

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 19 '23 04:03 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 21 '23 18:05 stale[bot]