Barista

The one who serves a great Espresso

OTHER License

Stars
1.7K
Committers
50

Bot releases are hidden (Show)

Barista - v2.8.0

Published by Sloy over 5 years ago

  • Apply new code style to the whole project (#272)
  • Rename assertionErrorMessage to assertionDescription (#273)
  • Adds assertDisplayed(Matcher) and assertNotDisplayed(Matcher) methods (#271)
  • Add Schibsted code style (#270)
Barista - v2.7.1

Published by Sloy almost 6 years ago

  • Fix assertListItemCount not throwing error when failed bug (#269)
  • Made license file link working (#263)
  • Clarify how to use the custom assertions message (#257)
  • Improve the explanation about custom assertions (#255)
  • Rename custom assertion message parameter to better explain its intention (#256)
Barista - v2.4.0

Published by Sloy over 6 years ago

Introduce generic assertAnyView function (#198)
Add Intents on the index (#208)
Fix typo (#207)

Barista - v2.5.0

Published by Sloy over 6 years ago

New:

  • Hint and error assertions (#236)
  • Added setTimeOnPicker function that populates the hour and minute on a time picker (#237)
  • Added clearText function for EditTexts (#238)

Fixes:

  • Make public ActivityTestRule from BaristaRule (#215)
  • Fix ListInteractions failure handling (#240)
  • Improve assertion tests and errors (#242)

Others:

  • Created ViewActionExecutor to reuse performAction() code (#194)
  • Explain how to use @get:Rule in Kotlin tests (#221)
  • Update libraries, build tools, gradle version, etc (#222)
  • Update readme with new Gradle syntax (#225)
Barista - v2.3.0

Published by Sloy over 6 years ago

  • Fake camera calls intents (#159)

  • Better Kotlin support for BaristaRule (#205)

  • Remove barista2 branch for travis (#206)

  • Barista logo svg (#201)

  • Fixes wrong error handling on assertDisplayed (#192)
  • Adding interactions for SeekBar views (#182)
  • Update readme look and feel (#191)
  • Add keyboard interactions (#185)
  • Fix the "not" section of the text color asserts (#190)
  • Add with text color (#179)
  • Create CODE_OF_CONDUCT.md (#189)
  • Added support for GridView interactions (#188)
  • Add assert not displayed with text (again) (#186)
  • Add assertContains matcher (#170)
  • Assert that a given View has a background, any background or no background (#174)
  • BaristaSpinnerInteractions converted to kotlin (#180)
  • Update readme (#177)
Barista - Scroll to a text resource... is back!

Published by rocboronat almost 7 years ago

Don't know why, on Barista 2.0 we removed that feature. But you still need it, isn't it? So, he's back, like Terminator, but being a method of the Barista public API. #176

Barista - 2.0.0

Published by Sloy almost 7 years ago

Yeeey! Check out the migration guide!

  • Improve error handling on magic methods (#134)
  • Change click to clickOn (#144)
  • Changed package structure (#143)
  • Add pull to refresh without id (#150)
  • Add focus assertions (#148)
  • Merge RecyclerView and ListView actions into ListActions (#146)
  • Create FlakyTestRule independent from ActivityTestRule (#160)
  • Rename and remove some APIs (#161)
  • Add assertText to check a given text is shown in a given view (#157)
  • Rename Barista Actions to Interactions (#162)
  • Split assertion classes (#171)
Barista - Scroll to a text resource

Published by rocboronat almost 7 years ago

Previously, you scrolled to Views by its id or by a "hardcoded text".

Let's start the scroll party to R.string.something! #167

Barista - Long Click

Published by Sloy almost 7 years ago

  • Added LongClickActions (#136)
  • Fixes click with scroll and multiple views (#130)
Barista - Kotlin, Drawable and ClearDatabase

Published by Sloy about 7 years ago

  • Introduce Kotlin in the library.
  • Add an assertDrawable() method for ImageViews.
  • Allow excluding tables from the ClearDatabaseRule.
Barista - Espresso 3

Published by Sloy about 7 years ago

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" }
}
Barista - Fix PermissionGranter on weird phones

Published by rocboronat about 7 years ago

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!

Barista - Improve flaky logging

Published by Sloy over 7 years ago

FlakyTestRule now logs the stacktrace of each failed attempt:

  • Add stacktrace to log on failed flaky attempts (#109)
Barista - Keeping Barista stable

Published by alorma over 7 years ago

  • Improvements on PermissionGranter, by @Sloy
  • Improve click(), no more @IdRes, by @alorma
Barista - Update scrollTo() with support for NestedScrollView

Published by alorma over 7 years ago

Barista - Give a welcome to BaristaRule

Published by rocboronat over 7 years ago

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

Barista - Let's clean files before running each test

Published by rocboronat over 7 years ago

Test isolation is great. This version adds ClearFilesRule, a Rule to delete all files before running each test, to keep them isolated.

Barista - Menu click actions are here

Published by alorma over 7 years ago

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!

Barista - Pull to refresh action and Recycler child count assertion!

Published by rocboronat over 7 years ago

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!

Package Rankings
Top 8.17% on Proxy.golang.org
Top 22.26% on Repo1.maven.org
Badges
Extracted from project README
Hex.pm
Related Projects