{"id":17210874,"url":"https://github.com/braisgabin/fragmenttestrule","last_synced_at":"2026-01-11T17:44:01.039Z","repository":{"id":57716384,"uuid":"73930849","full_name":"BraisGabin/FragmentTestRule","owner":"BraisGabin","description":"JUnit Rule to test a Fragment in isolation","archived":false,"fork":false,"pushed_at":"2019-01-10T13:44:05.000Z","size":180,"stargazers_count":102,"open_issues_count":0,"forks_count":16,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-01T14:18:07.998Z","etag":null,"topics":["android","android-testing","espresso","junit-rule"],"latest_commit_sha":null,"homepage":"https://engineering.21buttons.com/how-to-test-fragments-in-isolation-a7435a4cdc92","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/BraisGabin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-16T15:07:17.000Z","updated_at":"2024-07-31T07:25:50.000Z","dependencies_parsed_at":"2022-09-15T11:00:24.766Z","dependency_job_id":null,"html_url":"https://github.com/BraisGabin/FragmentTestRule","commit_stats":null,"previous_names":["21buttons/fragmenttestrule"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/BraisGabin/FragmentTestRule","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BraisGabin%2FFragmentTestRule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BraisGabin%2FFragmentTestRule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BraisGabin%2FFragmentTestRule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BraisGabin%2FFragmentTestRule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BraisGabin","download_url":"https://codeload.github.com/BraisGabin/FragmentTestRule/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BraisGabin%2FFragmentTestRule/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263625628,"owners_count":23490588,"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","android-testing","espresso","junit-rule"],"created_at":"2024-10-15T02:55:41.856Z","updated_at":"2026-01-11T17:44:01.015Z","avatar_url":"https://github.com/BraisGabin.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fragment Test Rule\n\nTest `Fragment`s in isolation.\n\n## Download\n\n```gradle\nandroidTestImplementation 'com.21buttons:fragment-test-rule:2.0.1'\ndebugImplementation 'com.21buttons:fragment-test-rule-extras:2.0.1'\n```\n\nNote: If you don't support AndroidX yet use the version `1.1.0`.\n\n## Usage\n\n```java\n@Rule\npublic FragmentTestRule\u003c?, FragmentWithoutActivityDependency\u003e fragmentTestRule =\n    FragmentTestRule.create(FragmentWithoutActivityDependency.class);\n\n@Test\npublic void clickButton() throws Exception {\n  onView(withText(R.string.button)).perform(click());\n\n  onView(withText(R.string.button_clicked)).check(matches(isDisplayed()));\n}\n```\n\nYou can check the sample code for more examples.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbraisgabin%2Ffragmenttestrule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbraisgabin%2Ffragmenttestrule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbraisgabin%2Ffragmenttestrule/lists"}