hey guys. what testing architecture/libraries do you use?
m
marlonlom
03/19/2021, 1:36 AM
Testing Arch? Mmm, think of TDD or something similar.
Libs? Mm some: Spek, Junit, Mockito, Roboelectric, Truth assertions
a
A. Sachdeva
03/19/2021, 8:34 AM
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
marlonlom
03/19/2021, 4:42 PM
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
Pavel Sidyakin
03/20/2021, 7:38 PM
I'd recommend Kaspresso. The awesome wrapper over Espresso (not only) with cool Kotlin DSL.