Skip to content

Commit 58f27ba

Browse files
authored
Merge pull request #81 from rubensousa/rubensousa-patch-1
Update documentation to mention test services
2 parents fd0f088 + f506aea commit 58f27ba

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

docs/test-reports-android.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,25 @@
22

33
## Setup
44

5-
Start by including the library:
5+
1. Start by including the library:
66

77
```groovy
88
androidTestImplementation("com.rubensousa.carioca:report-android:{{ report.version }}")
99
```
1010

11-
Then create your own report rule that extends `InstrumentedReportRule`:
11+
2. Enable the test storage service:
12+
13+
```groovy
14+
android {
15+
defaultConfig {
16+
testInstrumentationRunnerArguments useTestStorageService: 'true'
17+
}
18+
}
19+
20+
androidTestUtil("androidx.test.services:test-services:1.5.0")
21+
```
22+
23+
3. Then create your own report rule that extends `InstrumentedReportRule`:
1224

1325
```kotlin
1426
class TestReportRule : InstrumentedReportRule()

0 commit comments

Comments
 (0)