{"id":20819980,"url":"https://github.com/elo7/cappuccino","last_synced_at":"2025-05-07T15:41:31.533Z","repository":{"id":61969509,"uuid":"48127374","full_name":"elo7/cappuccino","owner":"elo7","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-24T11:07:48.000Z","size":109,"stargazers_count":19,"open_issues_count":0,"forks_count":1,"subscribers_count":103,"default_branch":"master","last_synced_at":"2024-03-26T22:00:50.929Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elo7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-16T18:21:11.000Z","updated_at":"2022-11-01T17:38:02.000Z","dependencies_parsed_at":"2022-10-24T12:00:14.675Z","dependency_job_id":null,"html_url":"https://github.com/elo7/cappuccino","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/elo7%2Fcappuccino","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elo7%2Fcappuccino/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elo7%2Fcappuccino/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elo7%2Fcappuccino/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elo7","download_url":"https://codeload.github.com/elo7/cappuccino/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225096726,"owners_count":17420292,"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":[],"created_at":"2024-11-17T22:07:58.798Z","updated_at":"2024-11-17T22:07:59.224Z","avatar_url":"https://github.com/elo7.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cappuccino\n\nWriting interface tests using Espresso is not an easy task. Cappuccino was born to make your tests more fluid, and it's also a repository of utilities created for us developers.\n\n# Examples:\n\n* With Espresso:\n\n    ```\n    onView(withId(R.id.view_id)).perform(click());\n    onView(withText(\"Hello World!\")).check(matches(isDisplayed()));\n    onView(withId(R.id.view_id)).perform(clearText());\n    ```\n* With Cappuccino:\n\n    ```\n    actionClick().inView(R.id.view_id).perform();\n    actionHasText(\"Hello World!\").perform();\n    actionClearField().inView(R.id.view_id).perform();\n    ```\n\nYou can also set a delay time before the Cappuccino perform the action, like:\n\n```\nactionClick().inView(R.id.view_id).withDelay(1000).perform();\n```\n\nAnd more...\n\n```\nactionType(); \nactionExist(); \nactionSwipeLeft();\nactionSwipeRight();\nactionHasBackgroundColor(); \nactionScrollRecyclerView();\n```\n\n# Usage\n \nAdd it in your root build.gradle at the end of repositories:\n\n```\nallprojects {\n    repositories {\n        ...\n        maven { url \"https://jitpack.io\" }\n    }\n}\n```\n    \nThen add the dependency\n\n```\ndependencies {\n        androidTestCompile 'com.github.elo7:cappuccino:0.2'\n}\n```\n\nFeel free to submit a pull request with more awesome actions :)\n\n# Contribute\n\n* If you **found a bug**, open an issue.\n* If you **have a feature request**, open an issue.\n* If you **want to contribute**, submit a pull request\n\n\n# License \n```\nCopyright 2016 Elo7, Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felo7%2Fcappuccino","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felo7%2Fcappuccino","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felo7%2Fcappuccino/lists"}