{"id":17643806,"url":"https://github.com/vanniktech/espresso-utils","last_synced_at":"2025-04-15T06:15:38.946Z","repository":{"id":37413098,"uuid":"94876874","full_name":"vanniktech/espresso-utils","owner":"vanniktech","description":"Provides helper methods for asserting a few things that Espresso does not support out of the box.","archived":false,"fork":false,"pushed_at":"2025-03-25T05:39:13.000Z","size":854,"stargazers_count":29,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T06:15:33.202Z","etag":null,"topics":["android","espresso","java","kotlin","testing"],"latest_commit_sha":null,"homepage":"http://vanniktech.com","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vanniktech.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/funding.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["vanniktech"]}},"created_at":"2017-06-20T09:59:08.000Z","updated_at":"2025-03-25T05:38:50.000Z","dependencies_parsed_at":"2024-02-13T10:33:11.644Z","dependency_job_id":"ae1d6651-f1ce-447d-abd1-dda30c5e74fa","html_url":"https://github.com/vanniktech/espresso-utils","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanniktech%2Fespresso-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanniktech%2Fespresso-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanniktech%2Fespresso-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanniktech%2Fespresso-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vanniktech","download_url":"https://codeload.github.com/vanniktech/espresso-utils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249016641,"owners_count":21198833,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","espresso","java","kotlin","testing"],"created_at":"2024-10-23T09:42:56.508Z","updated_at":"2025-04-15T06:15:38.931Z","avatar_url":"https://github.com/vanniktech.png","language":"Java","funding_links":["https://github.com/sponsors/vanniktech"],"categories":[],"sub_categories":[],"readme":"Espresso Utils\n==============\n\nProvides helper methods for asserting a few things that Espresso does not support out of the box.\n\n# Espresso Core Utils\n\n```groovy\nandroidTestImplementation 'com.vanniktech:espresso-core-utils:0.4.0'\n```\n\n### Snapshots\n\n```groovy\nrepositories {\n  maven { url \"https://oss.sonatype.org/content/repositories/snapshots\" }\n}\n\ndependencies {\n  androidTestImplementation 'com.vanniktech:espresso-core-utils:0.5.0-SNAPSHOT'\n}\n```\n\n# APIs\n\n### ViewActions:\n\nAll of those are ViewActions that can be placed inside the `perform` function. `onView(withId(R.id.view)).perform(...);`\n\n```java\nappendText(String text)\n```\n\n### ViewMatchers:\n\nAll of those are ViewMatchers that can be placed inside the `matches` function. `onView(withId(R.id.view)).check(matches(...));`\n\n```java\nappendText(String text)\nwithTextViewDrawableLeft(@DrawableRes int resourceId)\nwithNoTextViewDrawableLeft()\nwithTextViewDrawableRelativeLeft(@DrawableRes int resourceId)\nwithNoTextViewDrawableRelativeLeft()\nwithTextViewDrawableTop(@DrawableRes int resourceId)\nwithNoTextViewDrawableTop()\nwithTextViewDrawableRelativeTop(@DrawableRes int resourceId)\nwithNoTextViewDrawableRelativeTop()\nwithTextViewDrawableRight(@DrawableRes int resourceId)\nwithNoTextViewDrawableRight()\nwithTextViewDrawableRelativeRight(@DrawableRes int resourceId)\nwithNoTextViewDrawableRelativeRight()\nwithTextViewDrawableBottom(@DrawableRes int resourceId)\nwithNoTextViewDrawableBottom()\nwithTextViewDrawableRelativeBottom(@DrawableRes int resourceId)\nwithNoTextViewDrawableRelativeBottom()\nwithProgress(int progress)\nwithDrawable(@DrawableRes int resourceId)\nwithNoDrawable()\nwithAttrRes(@AttrRes int attr, @ColorRes int colorRes)\nwithAttr(@AttrRes int attr, @ColorInt int color)\nwithAttr(@AttrRes int attr, String color)\nwithColorAccentRes(@ColorRes int colorRes)\nwithColorAccent(@ColorInt int color)\nwithColorAccent(String color)\nwithColorButtonNormalRes(@ColorRes int colorRes)\nwithColorButtonNormal(@ColorInt int color)\nwithColorButtonNormal(String color)\nwithHintTextColorRes(@ColorRes int colorRes)\nwithHintTextColor(@ColorInt int color)\nwithHintTextColor(String color)\nwithCurrentItem(int currentItem)\nwithTextColorRes(@ColorRes int colorRes)\nwithTextColor(@ColorInt int color)\nwithTextColor(String color)\n```\n\nThere's more documentation available in the Javadoc. Also have a look at the [tests](espresso-core-utils/src/androidTest/java/com/vanniktech/espresso/core/utils) for further usages.\n\n# License\n\nCopyright (C) 2017 Vanniktech - Niklas Baudy\n\nLicensed under the Apache License, Version 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanniktech%2Fespresso-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvanniktech%2Fespresso-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanniktech%2Fespresso-utils/lists"}