Automated Tests for Android apps

Embed Size (px)

Citation preview

Automated Tests for Android apps

Who is that guy?

Clement QuaquinTwitter: @openkwaky

Android Lead developer @Equasoft5 years XP in Android app development

Apps : Xivo / SmartGPS / FdjScan / EuroMillions / WhoamI? / ChanelUV / KurioStore / DartyStore / FranceBleu / RatingReminder lib / ...

Why writing Tests?

Minimize regressions

Optimize testing time by iteration

Improve code quality #qualitymatters

Monitor performance

TDD

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)

Test levels

Android tests

Local unit tests(on JVM)

in src/testInstrumentation tests(require Android device)

in src/androidTest

Unit tests

Test small modular code

Should be fast (