All Projects → vanniktech → espresso-utils

vanniktech / espresso-utils

Licence: Apache-2.0 license
Provides helper methods for asserting a few things that Espresso does not support out of the box.

Programming Languages

java
68154 projects - #9 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to espresso-utils

Kappuccino
A kotlin library to simplify how to do espresso tests on Android.
Stars: ✭ 104 (+285.19%)
Mutual labels:  espresso
Espressouitest Examples
Examples of UI Testing with Espresso, Mockk, androidx.test
Stars: ✭ 157 (+481.48%)
Mutual labels:  espresso
Marathon
Cross-platform test runner written for Android and iOS projects
Stars: ✭ 250 (+825.93%)
Mutual labels:  espresso
Adbserver
Adb Server for Espresso tests
Stars: ✭ 105 (+288.89%)
Mutual labels:  espresso
Cleanguitestarchitecture
Sample project of Android GUI test automation using Espresso, Cucumber and the Page Object Pattern
Stars: ✭ 139 (+414.81%)
Mutual labels:  espresso
Coroutines Flows Modularised
Clean Architecture Modular Project: MVVM + Coroutines+ Flows + Dagger2 + LiveData + UnitTests + UITests + MockWebServer
Stars: ✭ 166 (+514.81%)
Mutual labels:  espresso
Silvia Pi
A Raspberry Pi modification to the Rancilio Silvia Espresso Machine implementing PID temperature control.
Stars: ✭ 91 (+237.04%)
Mutual labels:  espresso
marathon
Cross-platform test runner written for Android and iOS projects
Stars: ✭ 398 (+1374.07%)
Mutual labels:  espresso
Testowanieoprogramowania
Testowanie oprogramowania - Książka dla początkujących testerów
Stars: ✭ 146 (+440.74%)
Mutual labels:  espresso
Marvel
Marvel Characters Android Application Assigned by smava GmbH
Stars: ✭ 227 (+740.74%)
Mutual labels:  espresso
Pdfviewpager
Android widget that can render PDF documents stored on SD card, linked as assets, or downloaded from a remote URL.
Stars: ✭ 1,508 (+5485.19%)
Mutual labels:  espresso
Offlinefirstreactiveapp Tutorial
Check out the blog post for more info
Stars: ✭ 120 (+344.44%)
Mutual labels:  espresso
Conditionwatcher
Android tool which helps to synchronise application behaviours with test thread in automation tests.
Stars: ✭ 190 (+603.7%)
Mutual labels:  espresso
Kotlin Espresso Sample
MVP Android project that uses Espresso instrumentation tests and Robolectric. All written in Kotlin.
Stars: ✭ 104 (+285.19%)
Mutual labels:  espresso
mvp-sample
Demonstrates how to implement MVP (Model View Presenter) pattern using Kotlin, RXJava, Retrofit, Dagger and DataBinding
Stars: ✭ 35 (+29.63%)
Mutual labels:  espresso
Barista
☕️ The one who serves a great Espresso
Stars: ✭ 1,351 (+4903.7%)
Mutual labels:  espresso
Busybee
BusyBee is an alternative API for IdlingResources in Espresso tests
Stars: ✭ 165 (+511.11%)
Mutual labels:  espresso
Kotlin-MVP-Testing
Examples of testing different layers of an Android app with MVP architecture.
Stars: ✭ 24 (-11.11%)
Mutual labels:  espresso
ContactsApp
Go-Jek Engineering Task Used MVP and Unit Testing Espresso, Mock Webserver and Activity Instrumentation Tests ,RxJava + RxAndroid + Retrofit 2 + OkHttp 3 + Dagger2 + ButterKnife+ Glide + Active Android ORM
Stars: ✭ 21 (-22.22%)
Mutual labels:  espresso
Green Coffee
Android library that allows you to run your acceptance tests written in Gherkin in your Android instrumentation tests.
Stars: ✭ 219 (+711.11%)
Mutual labels:  espresso

Espresso Utils

Provides helper methods for asserting a few things that Espresso does not support out of the box.

Espresso Core Utils

androidTestImplementation 'com.vanniktech:espresso-core-utils:0.4.0'

Snapshots

repositories {
  maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}

dependencies {
  androidTestImplementation 'com.vanniktech:espresso-core-utils:0.5.0-SNAPSHOT'
}

APIs

ViewActions:

All of those are ViewActions that can be placed inside the perform function. onView(withId(R.id.view)).perform(...);

appendText(String text)

ViewMatchers:

All of those are ViewMatchers that can be placed inside the matches function. onView(withId(R.id.view)).check(matches(...));

appendText(String text)
withTextViewDrawableLeft(@DrawableRes int resourceId)
withNoTextViewDrawableLeft()
withTextViewDrawableRelativeLeft(@DrawableRes int resourceId)
withNoTextViewDrawableRelativeLeft()
withTextViewDrawableTop(@DrawableRes int resourceId)
withNoTextViewDrawableTop()
withTextViewDrawableRelativeTop(@DrawableRes int resourceId)
withNoTextViewDrawableRelativeTop()
withTextViewDrawableRight(@DrawableRes int resourceId)
withNoTextViewDrawableRight()
withTextViewDrawableRelativeRight(@DrawableRes int resourceId)
withNoTextViewDrawableRelativeRight()
withTextViewDrawableBottom(@DrawableRes int resourceId)
withNoTextViewDrawableBottom()
withTextViewDrawableRelativeBottom(@DrawableRes int resourceId)
withNoTextViewDrawableRelativeBottom()
withProgress(int progress)
withDrawable(@DrawableRes int resourceId)
withNoDrawable()
withAttrRes(@AttrRes int attr, @ColorRes int colorRes)
withAttr(@AttrRes int attr, @ColorInt int color)
withAttr(@AttrRes int attr, String color)
withColorAccentRes(@ColorRes int colorRes)
withColorAccent(@ColorInt int color)
withColorAccent(String color)
withColorButtonNormalRes(@ColorRes int colorRes)
withColorButtonNormal(@ColorInt int color)
withColorButtonNormal(String color)
withHintTextColorRes(@ColorRes int colorRes)
withHintTextColor(@ColorInt int color)
withHintTextColor(String color)
withCurrentItem(int currentItem)
withTextColorRes(@ColorRes int colorRes)
withTextColor(@ColorInt int color)
withTextColor(String color)

There's more documentation available in the Javadoc. Also have a look at the tests for further usages.

License

Copyright (C) 2017 Vanniktech - Niklas Baudy

Licensed under the Apache License, Version 2.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].