Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

## 6.0.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
1 change: 0 additions & 1 deletion docs/docs/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down