junit-team / junit5-samples

Collection of sample applications using JUnit 5.
Eclipse Public License 2.0
1.55k stars 1.4k forks source link

Intellij IDE shows 'no name' for a kotlin-bazel project #227

Open barrylapthorn opened 1 year ago

barrylapthorn commented 1 year ago

I tried the java / junit5 / bazel sample, and it seems to load and run fine in Intellij.

Along similar lines I came up with a trivial kotlin/bazel version here:

https://github.com/barrylapthorn/kotlin-bazel-junit5

For reasons I haven't been able to figure out the kotlin annotated test is displayed as 'no name'. This is surprising as I've used an equivalent java/bazel/junit5 project that has no such problems.

See bottom left corner here:

Screenshot from 2023-05-08 15-20-10

Steps to reproduce:

It's entirely possibly I'm using an incorrect maven dependency.

What I'd like to see is not '<no name>' but say hello in the IDE output.

I'd also like to see a kotlin / bazel example in the samples repo if possible.

If you feel this is the wrong owner for this problem, happy to reopen perhaps in the bazel plugin repo instead.

marcphilipp commented 1 year ago

@barrylapthorn I'm afraid there are no Bazel experts here. I recommend asking in https://github.com/bazel-contrib/rules_jvm