All Projects → BraisGabin → FragmentTestRule

BraisGabin / FragmentTestRule

Licence: Apache-2.0 License
JUnit Rule to test a Fragment in isolation

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to FragmentTestRule

Kotlin-MVP-Testing
Examples of testing different layers of an Android app with MVP architecture.
Stars: ✭ 24 (-76.47%)
Mutual labels:  espresso, android-testing
Compose
Nice and simple DSL for Espresso Compose UI testing in Kotlin
Stars: ✭ 56 (-45.1%)
Mutual labels:  espresso, android-testing
rules4android
A collection of JUnit 4 Rules for Android Developers 🔬
Stars: ✭ 23 (-77.45%)
Mutual labels:  junit-rule, android-testing
ui-testing
No description or website provided.
Stars: ✭ 15 (-85.29%)
Mutual labels:  espresso, android-testing
GuildWars2 APIViewer
Guild Wars 2 API Viewer: An Android application used for viewing various Guild Wars 2 API endpoint responses. Developed utilizing MVVM architecture, in conjunction with Databinding, Dagger 2, Retrofit 2, and RxJava 2.
Stars: ✭ 53 (-48.04%)
Mutual labels:  espresso
kafka-junit
JUnit rule for spinning up a Kafka broker
Stars: ✭ 97 (-4.9%)
Mutual labels:  junit-rule
espresso-utils
Provides helper methods for asserting a few things that Espresso does not support out of the box.
Stars: ✭ 27 (-73.53%)
Mutual labels:  espresso
dexopener
An Android library that provides the ability to mock your final classes on Android devices.
Stars: ✭ 112 (+9.8%)
Mutual labels:  android-testing
AndroidTestingBox
Android project to experiment various testing tools
Stars: ✭ 63 (-38.24%)
Mutual labels:  espresso
kheera-testrunner-android
BDD Framework for Android
Stars: ✭ 18 (-82.35%)
Mutual labels:  android-testing
allure-kotlin
Allure integrations for test frameworks targeting Kotlin and Java with 1.6 source compatibility.
Stars: ✭ 40 (-60.78%)
Mutual labels:  espresso
TeamCityApp
TeamCity in your pocket (Android application)
Stars: ✭ 48 (-52.94%)
Mutual labels:  espresso
Selenium-Foundation
Selenium Foundation is an automation framework designed to extend and enhance the capabilities provided by Selenium (WebDriver).
Stars: ✭ 51 (-50%)
Mutual labels:  junit-rule
android-testify
Add screenshots to your Android tests
Stars: ✭ 223 (+118.63%)
Mutual labels:  android-testing
Villains-and-Heroes
Android app built with MVP architectural approach and uses Marvel Comics API that allows developers everywhere to access information about Marvel's vast library of comics. ⚡
Stars: ✭ 53 (-48.04%)
Mutual labels:  espresso
decent-visualizer
A visualizer for .shot files
Stars: ✭ 46 (-54.9%)
Mutual labels:  espresso
TDDWeatherApp
Android App trying to apply TDD and using MVVM, Kotlin Coroutines
Stars: ✭ 38 (-62.75%)
Mutual labels:  espresso
okir
A helper class that implements both an Espresso IdlingResource and an OkHttp Interceptor
Stars: ✭ 27 (-73.53%)
Mutual labels:  espresso
DailyBugle
📰Modern MVVM Android application following single activity architecture which fetches news from 🕷️ news API. this repository contains some best practices ⚡ of android development
Stars: ✭ 17 (-83.33%)
Mutual labels:  android-testing
Github-Search
https://medium.com/@ericntd/the-real-beginner-guide-to-android-unit-testing-3859d2f25186
Stars: ✭ 18 (-82.35%)
Mutual labels:  android-testing

Fragment Test Rule

Test Fragments in isolation.

Download

androidTestImplementation 'com.21buttons:fragment-test-rule:2.0.1'
debugImplementation 'com.21buttons:fragment-test-rule-extras:2.0.1'

Note: If you don't support AndroidX yet use the version 1.1.0.

Usage

@Rule
public FragmentTestRule<?, FragmentWithoutActivityDependency> fragmentTestRule =
    FragmentTestRule.create(FragmentWithoutActivityDependency.class);

@Test
public void clickButton() throws Exception {
  onView(withText(R.string.button)).perform(click());

  onView(withText(R.string.button_clicked)).check(matches(isDisplayed()));
}

You can check the sample code for more examples.

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].