Skip to content

Releases: AdevintaSpain/Barista

Kotlin, Drawable and ClearDatabase

30 Aug 14:28
Compare
Choose a tag to compare
  • Introduce Kotlin in the library.
  • Add an assertDrawable() method for ImageViews.
  • Allow excluding tables from the ClearDatabaseRule.

Espresso 3

27 Jul 14:27
Compare
Choose a tag to compare

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

26 Jul 08:04
Compare
Choose a tag to compare

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

20 Jul 07:21
Compare
Choose a tag to compare

FlakyTestRule now logs the stacktrace of each failed attempt:

  • Add stacktrace to log on failed flaky attempts (#109)

Keeping Barista stable

23 Jun 17:52
Compare
Choose a tag to compare

Update scrollTo() with support for NestedScrollView

13 Jun 07:49
Compare
Choose a tag to compare
v1.5.0

Bump version 1.5.0 (#98)

Give a welcome to BaristaRule

08 Jun 11:02
Compare
Choose a tag to compare

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

Added by @Sloy at #26

Let's clean files before running each test

02 Jun 10:35
Compare
Choose a tag to compare

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

01 Jun 09:38
Compare
Choose a tag to compare
Pre-release

This release adds an Action about Android Menu, thanks to the contribution #78:
clickMenu(R.id.menu_item);
clickMenu("Menu item 1);

These clicks work with overflowed menu items too!

Thanks to @alorma for this great contribution!

Pull to refresh action and Recycler child count assertion!

26 May 12:51
Compare
Choose a tag to compare

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!