hey guys. what testing architecture/libraries do y...
# android-architecture
a
hey guys. what testing architecture/libraries do you use?
m
Testing Arch? Mmm, think of TDD or something similar. Libs? Mm some: Spek, Junit, Mockito, Roboelectric, Truth assertions
a
thanks marlon. I have used Junit before, and they are pretty handy . we can test all business logics in the IDE only, which brings a good confidence in those niche logic functions. I am looking for solutions which could help me in gaining confidence over android components like views / recyclers /adapters etc. just to test weather a text is getting set correctly on the textview. i have to run an instrumentation test. Is it possible to run some tests in the IDE only which can help verify these stuff?
m
Mm, you can apply that using Espresso, which Is recommended by the android warlords ... Remember that such UI tests are placed in the src/androidTest/ java por kotlin folder
p
I'd recommend Kaspresso. The awesome wrapper over Espresso (not only) with cool Kotlin DSL.
m
Nice !!