Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Private Test Classes #3879

Open
Fleshgrinder opened this issue Feb 15, 2024 · 2 comments · May be fixed by #3915
Open

Private Test Classes #3879

Fleshgrinder opened this issue Feb 15, 2024 · 2 comments · May be fixed by #3915
Labels
enhancement ✨ Suggestions for adding new features or improving existing ones. intellij-plugin 🖥️ Issues related to the Kotest IntelliJ Plugin

Comments

@Fleshgrinder
Copy link

JUnit supports execution of private Kotlin test classes. For some reason IntelliJ dropped support for that, although it supported it in the past. 😝 The Kotest IntelliJ plugin supports private Kotlin test classes (all the necessary gutter icons are drawn), but Kotest with the JUnit runner fails. It complains that it cannot find any tests with that name.

Now, this could be a bug report for the Kotest IntelliJ plugin, just asking for not drawing the gutter icons when the class is private. Like IntelliJ does it since a while for JUnit. I'm not asking for that, because I believe that test classes should be private. They shouldn't show up in auto-completion, and they shouldn't be reusable.

@Kantis
Copy link
Member

Kantis commented Feb 15, 2024

I don't understand what you're asking for. Could you clarify?

@Fleshgrinder
Copy link
Author

private class MyTest : StringSpec({
    "this should be runnable" {}
})

Currently the kotest IntelliJ plugin shows the run icons in the gutter next to MyTest and "this should be runnable" but clicking them results in an error where it complains that it cannot find the tests to execute.

@LeoColman LeoColman added enhancement ✨ Suggestions for adding new features or improving existing ones. intellij-plugin 🖥️ Issues related to the Kotest IntelliJ Plugin labels Mar 3, 2024
@sksamuel sksamuel linked a pull request Mar 10, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ Suggestions for adding new features or improving existing ones. intellij-plugin 🖥️ Issues related to the Kotest IntelliJ Plugin
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants