kotest / kotest-intellij-plugin

The official Kotest plugin for Intellij and Android Studio
Apache License 2.0
175 stars 23 forks source link

Run only tests included via the include statement #317

Open Rattlehead931 opened 3 weeks ago

Rattlehead931 commented 3 weeks ago

I have a class like this

class SampleTest(
....
): SpringFunSpec({
    val importedContext = ImportedContext(....)

    include(importedContext.context)

    // Other tests
})

Where the importedContext.context is a factory that looks like

val context = funSpec {
        context("V1") {
            beforeTest {
                // Mock stuff
            }

            test("Test case 1") {
             // Test code
            }
        }
}       

Now I want to run only this line

include(importedContext.context) My expectation is all the tests imported via this include statement will run. But the run test button does not show up beside the line on intellij