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

Run only tests included via the include statement #317

Open
Rattlehead931 opened this issue Sep 4, 2024 · 0 comments
Open

Run only tests included via the include statement #317

Rattlehead931 opened this issue Sep 4, 2024 · 0 comments

Comments

@Rattlehead931
Copy link
Contributor

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 Rattlehead931 changed the title Run only tests included via the import statement Run only tests included via the include statement Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant