-
Notifications
You must be signed in to change notification settings - Fork 55
Closed
Labels
Description
Using de.mannodermaus.gradle.plugins:android-junit5:1.6.2.0 in Android Studio 4.2 beta1 in a multi-module project with:
- Gradle 6.7.1
- kotlin 1.4.20
- JUnit 5.7.0
- com.android.tools.build:gradle:4.2.0-beta01
- androidx.test:runner:1.3.0
- de.mannodermaus.junit5:android-test-core:1.2.0
- de.mannodermaus.junit5:android-test-runner:1.2.0
I'm seeing two issues:
- Running an individual instrumented test works, but @BeforeAll function not invoked
- in the android block of build.gradle.kts, attempting this testOptions block:
testOptions {
junitPlatform {
instrumentationTests {
// Whether or not to validate configuration of instrumentation tests in this build
integrityCheckEnabled = true
}
}
}
The junitPlatform block shows as a syntax error even though the de.mannodermaus.android-junit5 is present and working in the plugins block.
Without the testOptions block, and manually invoking the @BeforeAll function, the instrumented test runs fine, and debugs fine using JUnit5 as far as I can tell.
I know AS 4.2 beta 1 is brand new (and a beta), as is the android gradle plugin, so issues are not surprising. If there is anything additional I can do to help diagnose this, let me know.