just upgraded to `spek2` and when I ran the tests ...
# spek
m
just upgraded to
spek2
and when I ran the tests using gradle but it shows as if I have zero tests when I run it:
Copy code
> Task :kotlin:video_renderer:junitPlatformTest

Test run finished after 4 ms
[         0 containers found      ]
[         0 containers skipped    ]
[         0 containers started    ]
[         0 containers aborted    ]
[         0 containers successful ]
[         0 containers failed     ]
[         0 tests found           ]
[         0 tests skipped         ]
[         0 tests started         ]
[         0 tests aborted         ]
[         0 tests successful      ]
[         0 tests failed          ]
my dependencies file are here:
Copy code
ext {
  versions = [
    ...
    spek                          : '2.0.0-rc.1',
  ]
  libraries = [
    ...
    spekApi                         : [
                    dependencies.create("org.spekframework.spek2:spek-dsl-jvm:2.0.0-rc.1") {
                        exclude group: 'org.jetbrains.kotlin'
                    }
            ],
            spekJUnitPlatformEngine         : [
                    dependencies.create("org.spekframework.spek2:spek-runner-junit5:2.0.0-rc.1") {
                        exclude group: 'org.junit.platform'
                        exclude group: 'org.jetbrains.kotlin'
                    },
            ],
this is the configuration that I have for one of my app:
Copy code
apply from: "$rootDir/build-scripts/kotlin-library.gradle"


kotlin {
    experimental {
        coroutines 'enable'
    }
}

dependencies {
    compile project(':kotlin:common:file_utils')
    compile project(":kotlin:render_master:publicapi")
    compile project(':kotlin:couch_api')
    compile project(':kotlin:video_renderer:public_api')
    compile libraries.kotlinStdlib
    compile libraries.slf4j
    compile libraries.kotlinCoroutinesCore

    testCompile project(':kotlin:video_renderer')
    testCompile libraries.spekApi
    testCompile libraries.truth
    testRuntime libraries.logback
}`
a
You seem to be missing junit engine block
Copy code
test {
    useJUnitPlatform {
        includeEngines 'spek', 'spek2', 'some-other-test-engine'
    }
}
you need only
spek2
^
m
OMG!! Thank you
a
Sure :)