| Constants.kt |
|
338 |
- |
| DeleteFilesHelper.kt |
|
1868 |
- |
| EspressoHelper.kt |
Some convenient methods for testing Focus with espresso. |
2724 |
- |
| ext |
|
|
- |
| FeatureSettingsHelper.kt |
|
1431 |
- |
| FocusTestRule.kt |
A composite JUnit [TestRule] that bundles the standard Focus test prerequisites: notification permission grant,
environment setup, and mock web server lifecycle.
Declare it as the outermost rule in each test class:
```
@get:Rule(order = 0)
val focusTestRule = FocusTestRule()
```
|
1448 |
- |
| MainActivityTestRule.kt |
|
4139 |
- |
| MockLocationUpdatesRule.kt |
Rule that sets up a mock location provider that can inject location samples straight to the device that the test is
running on.
Credit to the mapbox team
https://github.com/mapbox/mapbox-navigation-android/blob/87fab7ea1152b29533ee121eaf6c05bc202adf02/libtesting-ui/src/main/java/com/mapbox/navigation/testing/ui/MockLocationUpdatesRule.kt
|
3875 |
- |
| RetryTestRule.kt |
|
1467 |
- |
| StringsHelper.kt |
|
1042 |
- |
| TestAssetHelper.kt |
Helper for hosting web pages locally for testing purposes. |
2412 |
- |
| TestHelper.kt |
|
12639 |
- |
| TestSetupRule.kt |
A JUnit [ExternalResource] that performs the standard Focus test environment setup: clipboard access prevention and
status bar collapse.
Intended to be composed inside [FocusTestRule] rather than used directly.
|
1074 |
- |