https://kotlinlang.org logo
#kotest
Title
# kotest
d

dave08

04/29/2021, 9:19 AM
Thanks for the plugin fix! Just wondering if there's any way the test browser could also work for test factories? (I have a separate file I declare the function I use to import into integration/unit test modules... that function doesn't seem to have such a view)
s

sam

04/29/2021, 10:54 AM
Example?
d

dave08

04/29/2021, 10:57 AM
Copy code
fun deviceRepositoryTests(repo: SomeRepository) = describeSpec {
    describe("device repository") {
          ....
    }
}
I put that function in a separate file called
DeviceRepositoryTestFactory.kt
and import it into my unit tests and integration tests
But when trying to navigate in that factory file (adding tests and such), the IDE test browser in the plugin just doesn't show the hierarchy... and in the places where it's imported, there's just an empty "Include: ..." entry for it.
5 Views