https://kotlinlang.org logo
Title
e

Eric Ampire [MOD]

02/18/2021, 6:48 AM
Hello, I have just started using kotest, and I have noticed that it’s not possible to run all test in one time, the kotest plugin show only tests available in the selected class, and when I tried to run all tests through the test folder as with junit I got this message “No tests found for given includes”, how can I fix that ?
s

sam

02/18/2021, 6:52 AM
can you show the error you get "No tests found for given includes". And are you running it by right clicking on the package ?
e

Eric Ampire [MOD]

02/18/2021, 6:54 AM
Yes by right clicking on the package
s

sam

02/18/2021, 6:54 AM
android studio ?
I suspect its using the junit support
e

Eric Ampire [MOD]

02/18/2021, 6:56 AM
Android Studio Arctic Fox | 2020.3.1 Canary 6 Build #AI-203.6682.168.2031.7132434, built on February 8, 2021 Runtime version: 11.0.8+10-b944.6842174 x86_64 VM: OpenJDK 64-Bit Server VM by N/A macOS 10.16 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 8 Registry: external.system.auto.import.disabled=true Non-Bundled Plugins: com.intellij.marketplace, wu.seal.tool.jsontokotlin, com.google.mad-scorecard, kotest-plugin-intellij
s

sam

02/18/2021, 6:56 AM
In android studio you probably need to run via gradle if you want all tests to run. If you want a single test / class to run, you can use the plugin
e

Eric Ampire [MOD]

02/18/2021, 7:08 AM
But related to the documentation it seem that this feature should be supported
s

sam

02/18/2021, 7:16 AM
Yeah it should be, but my guess is that android studio is different to intellij
e

Eric Ampire [MOD]

02/18/2021, 7:17 AM
Okay, thanks, let me try it out using gradle
👍🏻 1