{"repo":"KakaoCup/Kakao","free":true,"listed":false,"github":"https://github.com/KakaoCup/Kakao","clone":"git clone https://github.com/KakaoCup/Kakao.git","description":"Nice and simple DSL for Espresso in Kotlin","language":"Kotlin","stars":367,"topics":["android","kotlin","dsl","android-test","espresso","android-ui","ui-testing","testing-framework","testing-library","testing-tools"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"Kakao Nice and simple DSL for Espresso in Kotlin Introduction In many projects we have large amount of automated tests to ensure our application's quality and give our best experience to the user. The most famous library for writing automated tests is Espresso from Google. Even though Espresso is working really well with our test, the code readability is quite low. Let's look at some of the examples of how we write the test. This is an example just to check the visibility and you can see that it's not looking that good. As a developers, we want to improve not just our codebase quality, but also our implementation of tests as well. This is why we are introducing Kakao. The library that will make you enjoy writing automated tests like you are drinking a hot chocolate. Benefits - Readability - Reusability - Extensible DSL How to use it Create Screen Create your entity Screen where you will add the views involved in the interactions of the tests: Screen can represent the whole user interface or a portion of UI. If you are using Page Object pattern you can put the interactions of Kakao inside the Page Objects. Create KView Screen contains KView , these are the Android Framework views where you want to do the interactions: Kakao provides different types depending on the type of view: KView KEditText KTextView KButton KImageView KWebView KCheckbox KViewPager KSeekBar KSwitch and more Every KView contains matchers to retrieve the view involved in the ViewInteraction . Some examples o","default_branch":null,"files":null,"tree":[],"storefront":"/r/KakaoCup","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/KakaoCup/Kakao/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}