https://kotlinlang.org logo
m

Mgj

07/30/2020, 3:16 PM
I have a
jvmTest
sourceset that i use to run unit tests. I can run individual test-classes or individual test-methods from IntelliJ, and
gradlew jvmTest
also works correctly but when i try to "Run all tests..." for jvmTest i get an error: "No tests were found". What gives? Gradle:
Copy code
jvmTest {
            dependencies {
                implementation kotlin('test')
                implementation kotlin('test-junit')
            }
        }
w

WillP

07/30/2020, 5:09 PM
I don't have a good answer, but I occassionally get this kind of behavior in IntellJ/AS. I would start by checking out the configuration that is being run, and recreating that on the gradle cli with the
--info
flag
👍 1
a

Andrew

08/04/2020, 4:17 PM
I have issues with this too but saw the setting to use is File->Settings->Build->Gradle-> Run tests using IntelliJ. I get different results with AS and it does not appear to have this setting. I'm hoping there will be some improvements in future updates even if its a hint of what setting to change.
2 Views