You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -205,21 +206,60 @@ Then, add the integration library for Jetpack Compose to the `androidTestImpleme
205
206
206
207
[The wiki][wiki-home] includes a section on how to test your Composables with JUnit 5.
207
208
208
-
# Official Support
209
+
### Override the version of instrumentation test libraries
210
+
211
+
By default, the plugin will make sure to use a compatible version of the instrumentation test libraries
212
+
when it sets up the artifacts automatically. However, it is possible to choose a custom version instead via its DSL:
213
+
214
+
<detailsopen>
215
+
<summary>Kotlin</summary>
216
+
217
+
```kotlin
218
+
junitPlatform {
219
+
instrumentationTests.version.set("1.5.0")
220
+
}
221
+
```
222
+
</details>
223
+
224
+
<details>
225
+
<summary>Groovy</summary>
226
+
227
+
```groovy
228
+
junitPlatform {
229
+
instrumentationTests.version.set("1.5.0")
230
+
}
231
+
```
232
+
</details>
233
+
234
+
## Official Support
209
235
210
236
At this time, Google hasn't shared any immediate plans to bring first-party support for JUnit 5 to Android. The following list is an aggregation of pending feature requests:
-[Add support for JUnit 5 (issuetracker.google.com)](https://issuetracker.google.com/issues/127100532)
214
240
-[JUnit 5 support (github.com/android/android-test)](https://github.com/android/android-test/issues/224)
215
241
216
-
# Building Locally
242
+
##Building Locally
217
243
218
244
This repository contains multiple modules, divided into two sub-projects. The repository's root directory contains build logic shared across the sub-projects, which in turn use symlinks to connect to the common build scripts in their parent folder.
219
245
220
246
-`instrumentation`: The root folder for Android-based modules, namely the instrumentation libraries & a sample application. After cloning, open this project in Android Studio.
221
247
-`plugin`: The root folder for Java-based modules, namely the Gradle plugin for JUnit 5 on Android, as well as its test module. After cloning, open this project in IntelliJ IDEA.
222
248
249
+
## Plugin Compatibility Map
250
+
251
+
For users that cannot match the current minimum version requirement of the Android Gradle Plugin requested by this plugin,
252
+
refer to the table below to find a suitable alternative version. Note that **no active development will go into these
253
+
legacy versions**, so please consider upgrading to at least Android Gradle Plugin 8.0.0
0 commit comments