2. 2
Who is that guy ?
Clement Quaquin
Twitter : @openkwaky
Android Lead developer @Equasoft
5 years XP in Android app development
Apps : Xivo / SmartGPS / FdjScan / EuroMillions /
Who am I ? / Chanel UV / Kurio Store / Darty Store /
France Bleu / Rating Reminder lib / ...
4. 4
Test levels
Test levels for an app :
● Unit test (independant and modular code)
● Integration test (code inspection)
● Functionnal test (check user stories)
● Acceptance test (check project's compliance to
initial requests)
12. 12
Ui tests : JUnit & Espresso
Espresso
● simulates user's clicks, swipes and
more
● checks view's status and presence
● allows multi-activities scenarios
13. 13
Ui tests : Espresso
● ActivityTestRule launches a starting activity for
the tests
● ServiceTestRule allows calls to a service
(startService, StopService, etc)
14. 14
Ui tests : Espresso
● onView selects a view in the current screen by id
or text displayed
● onData selects a view controlled by an adapter
in the current screen (ListView)
● perform makes an action on a view (click)
● check checks status of a view