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
@@ -105,81 +100,62 @@ More information on Getting Started can be found [on the wiki][wiki-gettingstart
105
100
## Requirements
106
101
107
102
The latest version of this plugin requires:
108
-
109
-
- Android Gradle Plugin `4.0.0` or above
110
-
- Gradle `6.1.1` or above
103
+
* Android Gradle Plugin `7.0.0` or above
104
+
* Gradle `7.0` or above
111
105
112
106
## Instrumentation Test Support
113
107
114
-
There is experimental support for Android instrumentation tests, which requires some additional configuration & dependencies. Furthermore, because JUnit 5 is built on Java 8 from the ground up, its instrumentation tests will only run on devices running Android 8.0 (API 26) or newer. Older phones will skip the execution of these tests completely, marking them as "ignored".
108
+
You can use JUnit 5 to run instrumentation tests on emulators and physical devices, too. Because the framework is built on Java 8 from the ground up, these instrumentation tests will only run on devices running Android 8.0 (API 26) or newer – older phones will skip the execution of these tests completely, marking them as "ignored".
115
109
116
-
To start writing instrumentation tests with JUnit Jupiter, make the following changes to your module's build script:
110
+
Before you can write instrumentation tests with JUnit Jupiter, make sure that your module is using the `androidx.test.runner.AndroidJUnitRunner` (or a subclass of it) as its `testInstrumentationRunner`. Then, simply add a dependency on `junit-jupiter-api`to the `androidTestImplementation` configuration in your build script and the plugin will automatically configure JUnit 5 tests for you:
117
111
118
112
<detailsopen>
119
113
<summary>Kotlin</summary>
120
114
121
115
```kotlin
122
-
android {
123
-
defaultConfig {
124
-
// 1) Make sure to use the AndroidJUnitRunner, or a subclass of it. This requires a dependency on androidx.test:runner, too!
By enabling JUnit 5 for instrumentation tests, you will gain access to `ActivityScenarioExtension` (amog other things), which helps with the orchestration of `Activity` classes. Check [the wiki][wiki-home] for more info.
147
133
148
-
</details>
134
+
## Jetpack Compose
149
135
150
-
<details>
151
-
<summary>Groovy</summary>
152
-
153
-
```groovy
154
-
android {
155
-
defaultConfig {
156
-
// 1) Make sure to use the AndroidJUnitRunner, or a subclass of it. This requires a dependency on androidx.test:runner, too!
Support for Jetpack Compose is in the works, but considered experimental and unstable at this stage. To use it, first enable support for instrumentation tests as described above, then add the integration library for Jetpack Compose as well:
0 commit comments