rook
02/15/2019, 7:08 PMNoClassDefFoundError
It looks like I’m missing a dependency or something?raniejade
02/17/2019, 9:33 PMrook
02/18/2019, 2:21 PMrook
02/18/2019, 2:21 PMraniejade
02/18/2019, 9:27 PMspek-runner-junit5
may not be compatible with 5.3.1. Also, any reason you are still using 2.0.0-rc.1
?rook
02/19/2019, 2:59 PM2.0.0
, I fixed it. I dropped JUnit down to 5.1.1
to no avail. I’m getting the same errorrook
02/19/2019, 3:01 PM/src/test/java
and I’m using just a dummy test until I get up and running. object ASpec : Spek({
Feature("A feature") {
Scenario("A Scenario") {
var avar = 1
When("A When") {
avar += 1
}
Then("A Then") {
assertEquals(2, avar)
}
}
}
})
raniejade
02/19/2019, 9:29 PMrook
02/19/2019, 10:04 PMraniejade
02/19/2019, 10:05 PMrook
02/19/2019, 10:10 PMraniejade
02/19/2019, 10:11 PM./gradlew dependencies
on your project and paste the output here?rook
02/19/2019, 10:13 PM------------------------------------------------------------
Root project
------------------------------------------------------------
No configurations
raniejade
02/19/2019, 10:13 PM./gradlew <app>:dependencies
rook
02/19/2019, 10:17 PMrook
02/19/2019, 10:18 PMrook
02/19/2019, 10:19 PMraniejade
02/19/2019, 10:20 PMraniejade
02/19/2019, 10:21 PMde.mannodermaus.android-junit5
are you using? From what I remember it uses a specific version of junit5 (which is configurable)rook
02/19/2019, 10:21 PMde.mannodermaus.gradle.plugins:android-junit5:1.3.2.0
rook
02/19/2019, 10:22 PMraniejade
02/19/2019, 10:26 PMAGBPI: {"kind": "warning","text":"The kotlin-android plugin is currently applied after android-junit5! To guarantee full compatibility, please declare it above the JUnit 5 plugin."}
?rook
02/19/2019, 10:27 PMraniejade
02/19/2019, 10:27 PMrook
02/19/2019, 10:27 PMid("com.android.application")
id("jacoco")
id("de.mannodermaus.android-junit5")
kotlin("android.extensions")
kotlin("android")
kotlin("kapt")
id("realm-android")
id("com.google.gms.google-services")
}
raniejade
02/19/2019, 10:28 PMrook
02/19/2019, 10:28 PMrook
02/19/2019, 10:29 PMrook
02/19/2019, 10:30 PMrook
02/19/2019, 10:35 PM./gradlew test
from command line, the build is successful, but I don’t see any test resultsraniejade
02/19/2019, 10:36 PMraniejade
02/19/2019, 10:36 PMrook
02/19/2019, 10:36 PMrook
02/19/2019, 10:41 PMrook
02/19/2019, 10:47 PMde.mannodermaus.gradle.plugins:android-junit5:1.2.0.0
is incompatible with kotlin build scriptsrook
02/19/2019, 10:49 PMtestInstrumentationRunnerArguments["runnerBuilder"] = "de.mannodermaus.junit5.AndroidJUnit5Builder"
to the default config and I’m not getting the error anymore, it’s just not able to find any testsrook
02/19/2019, 10:50 PMrook
02/19/2019, 10:50 PMrook
02/19/2019, 10:52 PMraniejade
02/19/2019, 10:53 PM