Johan Alkstål
09/08/2019, 7:15 AMExecution failed for task ':test'.
> No tests found for given includes: [com.projectfaceoff.rink.entities.EntityManagerTest](filter.includeTestsMatching)
I'm sure I've missed something in the setup or something or placed the test file in the wrong place, KotlinTest docs don't say much about those things expect how to config the gradle build file.
I have a class extended with BehaviorSpec
inside a test/kotlin/com.foo.bar/
folder and created a Given
When
Then
test.Uzi Landsmann
09/08/2019, 7:26 AMJohan Alkstål
09/08/2019, 7:30 AMJohan Alkstål
09/08/2019, 7:32 AMsrc/test/kotlin
to see if there was an issue with that, so that's why it isn't the same as in the error message above.Uzi Landsmann
09/08/2019, 2:08 PMplugins {
kotlin("jvm") version "1.3.50"
}
repositories {
jcenter()
}
sam
09/08/2019, 4:17 PMsam
09/08/2019, 4:17 PMgradle check
should be enough to run that testJohan Alkstål
09/08/2019, 5:41 PMJohan Alkstål
09/08/2019, 5:41 PMJohan Alkstål
09/08/2019, 5:42 PMUzi Landsmann
09/08/2019, 5:42 PMJohan Alkstål
09/08/2019, 5:44 PMJohan Alkstål
09/08/2019, 5:45 PMsam
09/08/2019, 5:45 PMsam
09/08/2019, 5:45 PMsam
09/08/2019, 5:45 PMsam
09/08/2019, 5:46 PMJohan Alkstål
09/08/2019, 5:47 PMJohan Alkstål
09/08/2019, 5:47 PMsam
09/08/2019, 5:48 PMJohan Alkstål
09/08/2019, 5:48 PMsam
09/08/2019, 5:48 PMsam
09/08/2019, 5:50 PMJohan Alkstål
09/08/2019, 5:51 PMsam
09/08/2019, 5:54 PMJohan Alkstål
09/08/2019, 5:55 PMsam
09/08/2019, 5:55 PMsam
09/08/2019, 5:55 PMsam
09/08/2019, 5:56 PMsam
09/08/2019, 5:56 PMsam
09/08/2019, 5:59 PMsam
09/08/2019, 5:59 PMsam
09/08/2019, 5:59 PMcd jvm-gradle
./gradlew check
Johan Alkstål
09/08/2019, 6:02 PMsam
09/08/2019, 6:02 PMsam
09/08/2019, 6:02 PMsam
09/08/2019, 6:02 PM./gradlew test
toosam
09/08/2019, 6:03 PMJohan Alkstål
09/08/2019, 6:04 PMsam
09/08/2019, 6:04 PMsam
09/08/2019, 6:08 PMJohan Alkstål
09/08/2019, 6:28 PMtasks.getting(Test::class) {
useJUnitPlatform { }
}
to
tasks.test {
useJUnitPlatform { }
}
Johan Alkstål
09/08/2019, 6:28 PMJohan Alkstål
09/08/2019, 6:29 PMJohan Alkstål
09/08/2019, 6:31 PMval test by tasks.getting(Test::class) {
useJUnitPlatform { }
}
Johan Alkstål
09/08/2019, 6:32 PMJohan Alkstål
09/08/2019, 6:32 PMsam
09/08/2019, 6:34 PMsam
09/08/2019, 6:35 PMJohan Alkstål
09/08/2019, 6:35 PM