Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Introduction to Android Testing
Search
Soham Mondal
June 09, 2016
Technology
1
160
Introduction to Android Testing
Soham Mondal
June 09, 2016
Tweet
Share
More Decks by Soham Mondal
See All by Soham Mondal
Building Unstoppable Products v1.1
soham
0
54
Product Design as Your Competitive Edge
soham
0
75
Building Unstoppable Startups: Product Design as Your Competitive Edge
soham
0
110
Best Practices For Designing Apps For India - Devfest Bangalore 2022
soham
0
500
How (and Why) to be a data driven startup - THub Rubrix
soham
0
120
GFS - Startup School 2022
soham
0
580
Designing Experiences For Indian Users - T-Hub
soham
0
310
Designing_Products_For_Novice_Internet_Users_-_I.pdf
soham
0
90
Designing Products for Novice Internet Users - Opportunities & Problems
soham
1
200
Other Decks in Technology
See All in Technology
障害対応指揮の意思決定と情報共有における価値観 / Waroom Meetup #2
arthur1
5
480
Amazon CloudWatch Network Monitor のススメ
yuki_ink
1
210
これまでの計測・開発・デプロイ方法全部見せます! / Findy ISUCON 2024-11-14
tohutohu
3
370
Taming you application's environments
salaboy
0
190
サイバーセキュリティと認知バイアス:対策の隙を埋める心理学的アプローチ
shumei_ito
0
390
アジャイルチームがらしさを発揮するための目標づくり / Making the goal and enabling the team
kakehashi
3
140
オープンソースAIとは何か? --「オープンソースAIの定義 v1.0」詳細解説
shujisado
9
1.1k
Exadata Database Service on Dedicated Infrastructure(ExaDB-D) UI スクリーン・キャプチャ集
oracle4engineer
PRO
2
3.2k
ドメインの本質を掴む / Get the essence of the domain
sinsoku
2
160
iOSチームとAndroidチームでブランチ運用が違ったので整理してます
sansantech
PRO
0
150
OCI Network Firewall 概要
oracle4engineer
PRO
0
4.2k
Lambda10周年!Lambdaは何をもたらしたか
smt7174
2
110
Featured
See All Featured
Done Done
chrislema
181
16k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.5k
A Modern Web Designer's Workflow
chriscoyier
693
190k
KATA
mclloyd
29
14k
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
Code Reviewing Like a Champion
maltzj
520
39k
4 Signs Your Business is Dying
shpigford
180
21k
Bash Introduction
62gerente
608
210k
Ruby is Unlike a Banana
tanoku
97
11k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5k
How GitHub (no longer) Works
holman
310
140k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
Transcript
Introduction to Testing Soham Mondal
Soham Mondal - Founder, Triveous - Creator, Voice Recorder -
Google Expert: UX - Organizer at Blrdroid - Android/UX consultant
Agenda - Android architecture: MVP/MVVM/MVC? - What is Testing? Why
should you care? - Testing principles - Types of Tests - Unit testing - Functional/Integration/UI testing - Codelab
Architecture - Clean Architecture by UncleBob - MVC: Model View
Controller - MVP: Model View Presenter - MVVM: Model View ViewModel
MVP : Model View Presenter - Presenter - Injecting presenter
into Views - Can unit test the presenter http://hannesdorfmann.com/mosby/mvp/
What is testing? Testing helps create great, stable, maintainable and
scalable apps
Testing Principles - Clean architecture - Understand what you’re trying
to test - Isolation - Integration - All possible scenarios - TDD
Types of Tests - Unit tests - Integration tests -
End to end tests http://googletesting.blogspot.in/2015/04/just-say-no-to-more-end-to-end-tests.html
Unit Testing - Objective of Unit Testing: What are you
testing? - Options: Roboelectric, JUnit - Unit testing on android studio - JUnit - Mockito - PowerMock
Mockito - @mock - when/thenReturn - @spy - verify -
@ArgumentCaptor
UI/Functional/Integration testing - Objective: What are you testing? - Options:
Robotium, Espresso - Why is espresso generally better? - Espresso overview - Espresso test recorder in android studio - Support for firebase test lab
None
None
More espresso - Espresso-Intents and Intent Stubbing - Espresso-Contrib for
DatePicker, RecyclerView, Drawer actions, Accessibility checks, CountingIdlingResource - Idling resources - Code coverage
Codelab https://codelabs.developers.google.com/codelabs/android-testing/index.html
Q&A @s0h4m |
[email protected]