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
150
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
36
Product Design as Your Competitive Edge
soham
0
44
Building Unstoppable Startups: Product Design as Your Competitive Edge
soham
0
88
Best Practices For Designing Apps For India - Devfest Bangalore 2022
soham
0
450
How (and Why) to be a data driven startup - THub Rubrix
soham
0
95
GFS - Startup School 2022
soham
0
560
Designing Experiences For Indian Users - T-Hub
soham
0
290
Designing_Products_For_Novice_Internet_Users_-_I.pdf
soham
0
88
Designing Products for Novice Internet Users - Opportunities & Problems
soham
1
180
Other Decks in Technology
See All in Technology
長期間TiDBを使ってきた話 @ 私たちはなぜNewSQLを使うのかTiDB選定5社が語る選定理由と活用LT / Experiences with TiDB Over Time
chibiegg
2
900
FrontDoorとWebAppsを組み合わせた際のリダイレクト処理の注意点
kenichirokimura
1
520
検証を通して見えてきたTiDBの性能特性
lycorptech_jp
PRO
6
3.8k
プラットフォームってつくることより計測することが重要なんじゃないかという話 / Platform Engineering Meetup #8
taishin
1
370
Reducing Cross-Zone Egress at Spotify with Custom gRPC Load Balancing Recap
koh_naga
0
210
DMM.com アルファ室採用案内資料
hsugita
1
150
開発パフォーマンスを最大化するための開発体制
ham0215
2
420
Gitlab本から学んだこと - そーだいなるプレイバック / gitlab-book
soudai
4
430
よく聞くけど使ったことないソフトウェアNo.1 KafkaとSnowflake
foursue
4
360
Python と Snowflake はズッ友だょ!~ Snowflake の Python 関連機能をふりかえる ~
__allllllllez__
1
120
TechFeed Experts Night#27 〜 フロントエンドフレームワーク最前線 (Svelte)
baseballyama
1
520
Cracking the KubeCon CfP
inductor
2
250
Featured
See All Featured
How to Ace a Technical Interview
jacobian
272
22k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
357
22k
Teambox: Starting and Learning
jrom
128
8.4k
Web Components: a chance to create the future
zenorocha
305
41k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
60
14k
The Cult of Friendly URLs
andyhume
74
5.7k
How to name files
jennybc
65
93k
Product Roadmaps are Hard
iamctodd
44
9.7k
Build your cross-platform service in a week with App Engine
jlugia
225
17k
GraphQLとの向き合い方2022年版
quramy
32
12k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.1k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
322
20k
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]