m

    Mgj

    2 years ago
    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:
    jvmTest {
                dependencies {
                    implementation kotlin('test')
                    implementation kotlin('test-junit')
                }
            }
    w

    WillP

    2 years ago
    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
    a

    Andrew

    2 years ago
    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.