This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** This is a part of my pet project where I use DSL for making UI tests with faked data (swapped at runtime) | |
Back in 2017 we couldn't use spaces in function names :) | |
Inspired by the guru man https://jakewharton.com/testing-robots/ | |
*/ | |
@RunWith(AndroidJUnit4::class) class CatalogsScreenTest { | |
@Inject lateinit var catalogsRobot: CatalogsRobot | |
@Inject lateinit var catalogsRepository: CatalogRepository | |
fun givenCatalogsScreen(func: CatalogsRobot.() -> Unit) = catalogsRobot.apply { func() } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias gits='git status' | |
alias gitc='git commit -m' | |
alias gitca='git commit --amend' | |
alias gitf='git fetch -v' | |
alias gitl='git log --graph --oneline --date-order --decorate --color' | |
alias grh='git reset --hard' | |
alias gs='./gradlew --stop' | |
# Attach a debuger. Append it with the package name. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb shell am set-debug-app -w --persistent your.app.package |