diff --git a/CHANGELOG.md b/CHANGELOG.md index 93bb170d1..6603ce4d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,9 @@ - Fix `RootViewWithoutFocusException` being intermittently thrown by `Espresso.closeSoftKeyboard()` - **Breaking:** `dev.testify.internal.helpers.closeSoftKeyboard()` now requires an `Activity` parameter - Fix `ClassCastException` when passing `-PshardCount` and `-PshardIndex` to `screenshotTest` or `screenshotRecord` +- **Removed** the `useLocale` Gradle project property. It was declared but never read, and was typed + `Boolean`, so `-PuseLocale=en_CA` evaluated to `false` and could never have worked. Set the locale + per test with `TestifyConfiguration.locale` instead - Fix `baseline_image` in `report.yml` naming a file that does not exist. The path was built from the test method name alone, while baselines are stored as `_.png` — the same entry's `test_image` already used the correct name diff --git a/Plugins/Gradle/src/main/kotlin/dev/testify/internal/GradleProjectExtensions.kt b/Plugins/Gradle/src/main/kotlin/dev/testify/internal/GradleProjectExtensions.kt index fe43c5d89..ae92ee7f5 100644 --- a/Plugins/Gradle/src/main/kotlin/dev/testify/internal/GradleProjectExtensions.kt +++ b/Plugins/Gradle/src/main/kotlin/dev/testify/internal/GradleProjectExtensions.kt @@ -39,9 +39,6 @@ val Project.android: CommonExtension<*, *, *, *, *, *> val Project.isVerbose: Boolean get() = (this.properties["verbose"] as? String)?.toBoolean() ?: false -val Project.useLocale: Boolean - get() = (this.properties["useLocale"] as? String)?.toBoolean() ?: false - val Project.user: Int? get() = (this.properties["user"] as? String)?.toInt() diff --git a/docs/docs/settings.md b/docs/docs/settings.md index a1ef4a938..42562432a 100644 --- a/docs/docs/settings.md +++ b/docs/docs/settings.md @@ -95,7 +95,6 @@ Pass these to any Testify Gradle task with `-P`. | `verbose` | Set to `true` to print the `adb` commands Testify runs. | | `reportFileName` | The file name to use when copying the test report from the device. | | `reportPath` | The local directory to copy the test report to. | -| `useLocale` | Accepted, but the library doesn't currently use it ([#200](https://github.com/ndtp/android-testify/issues/200)). | `-PshardCount` and `-PshardIndex` fail with a `ClassCastException` in Testify 6.0.0 and earlier. With those versions, pass `numShards` and `shardIndex` as [instrumentation arguments](recipes/24-continuous-integration.md#splitting-tests-into-shards) instead.