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

Run only tests included via the include statement

Open Rattlehead931 opened this issue 1 year ago • 0 comments

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

Rattlehead931 avatar Sep 04 '24 19:09 Rattlehead931