Skip to content

Commit 8a63e3d

Browse files
author
Manuel Vivo
committed
[Crane] Updates README with testing
Change-Id: I60742937274256557920f579496f3d3d337b8634
1 parent 637eb87 commit 8a63e3d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Crane/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ The data is hardcoded in the _CraneData_ [file][data] and exposed to the UI usin
4343
[MainViewModel][mainViewModel]. Image resources are retrieved from
4444
[Unsplash](https://unsplash.com/).
4545

46+
## Testing
47+
48+
Crane has Compose-only tests (e.g. [HomeTest][homeTest]) but also tests covering Compose and the
49+
view-based system (e.g. [DetailsActivityTest][detailsTest]). The latter uses the `onActivity`
50+
method of the `ActivityScenarioRule` to access information from the `MapView`.
51+
4652
## License
4753

4854
```
@@ -68,4 +74,6 @@ limitations under the License.
6874
[details]: app/src/main/java/androidx/compose/samples/crane/details/DetailsActivity.kt
6975
[data]: app/src/main/java/androidx/compose/samples/crane/data/CraneData.kt
7076
[mainViewModel]: app/src/main/java/androidx/compose/samples/crane/home/MainViewModel.kt
77+
[homeTest]: app/src/androidTest/java/androidx/compose/samples/crane/home/HomeTest.kt
78+
[detailsTest]: app/src/androidTest/java/androidx/compose/samples/crane/details/DetailsActivityTest.kt
7179
[coil-accompanist]: https://github.com/chrisbanes/accompanist

0 commit comments

Comments
 (0)