Releases: AdevintaSpain/Barista
Kotlin, Drawable and ClearDatabase
- Introduce Kotlin in the library.
- Add an assertDrawable() method for ImageViews.
- Allow excluding tables from the ClearDatabaseRule.
Espresso 3
This release has one BIG change, by updating Espresso to the latest version 3.0.0!
It has many improvements and new things, which can be seen here: https://developer.android.com/topic/libraries/testing-support-library/release-notes.html#espresso_300_runner_100_rules_100_androidtestorchestrator_100_2017-07-25_announcement
The only "breaking" change of this version is the need to add the Google Maven repository to your project (which you should do anyways, no matter Barista).
repositories {
maven { url "https://maven.google.com" }
}
Fix PermissionGranter on weird phones
As @crgarridos explains at #108, PermissionGranter
was clicking on the refuse button on some phones like the Lenovo TB3-850M and the Moto G2 2014. And he fixed it at #110. Big thanks!
In addition, #111 improves the message that appears when running Barista's tests on phones without the runtime permissions system, to help Barista's developers. Let's make our work easier!
Improve flaky logging
FlakyTestRule now logs the stacktrace of each failed attempt:
- Add stacktrace to log on failed flaky attempts (#109)
Keeping Barista stable
Update scrollTo() with support for NestedScrollView
v1.5.0 Bump version 1.5.0 (#98)
Give a welcome to BaristaRule
BaristaRule
assumes sane defaults, and doesn't really allow customization. Whoever wants to do something different, they can use the individual rules instead. Defaults are:
- Flaky attempts (without annotation): 10
- Launch activity automatically: false
- Initial touch mode enabled: true
- Clear preferences: always
- Clear databases: always
- Clear files: always
Let's clean files before running each test
Test isolation is great. This version adds ClearFilesRule
, a Rule to delete all files before running each test, to keep them isolated.
Menu click actions are here
Pull to refresh action and Recycler child count assertion!
This Release adds an Action and a Assertion, thanks to the contribution #75:
BaristaSwipeRefreshActions.refresh(R.id.swipetorefreshview);
BaristaAssertions.assertRecyclerViewItemCount(R.id.recycler, expectedChildCount)
Thanks to @rubikovitch for this great contribution!