Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Flutterテストことはじめ
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
takattata
May 31, 2018
Programming
870
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Flutterテストことはじめ
@Flutter Meetup Tokyo #2
#flutter_meetup_tokyo
takattata
May 31, 2018
More Decks by takattata
See All by takattata
What's DDD?
takattata
5
930
Kotlinのコントリビュートに挑戦してみたよ!
takattata
3
310
導入画面を実装したよ
takattata
1
2.1k
AndroidXに移行しようと`してみた`!
takattata
2
740
Flutter
takattata
3
1.7k
ディープリンクを実装した
takattata
1
1.9k
introduce unit testing
takattata
1
600
xUnit Test Patterns の序章
takattata
1
400
プロジェクトの1ファイルに単体テストを書いてみた!〜本当にこれで合ってるの…??🤔〜
takattata
0
2.5k
Other Decks in Programming
See All in Programming
信頼性の目標を誰も求めてない
shubox
0
500
Hono + Inertia + React で LP を構築した話
oukayuka
2
220
一参加者から『中の人』へ 〜全通PHPerがブースに立って学んだ、カンファレンスを100倍楽しむコツ〜
wp_daisuke
0
140
AWS Step Functions 大規模並列の壁を越える / jaws-sonic-2026-niigata-step-functions
kasacchiful
PRO
1
430
AI × TiDD / 2026.09.05 Redmine 大阪
tokudiro
1
120
Security issues being discussed on Web Platforms
petamoriken
0
560
AI時代に学ぶ 好きなルール 嫌いなルール Linter編
shorty5121
0
910
GKE アップグレード前に知っておきたい Blue/Green と PDB の関係
stkk
0
160
業務時間外もAIに働いてもらう話
colorful12
3
10k
typoなんかねぇよ
raspython3
0
680
{ Android | Kotlin } Gradle Plugin in 2026
ryunen344
1
300
[DroidKaigi 2026] Bring your own phones to Gradle Managed Devices
f2lk
0
110
Featured
See All Featured
Optimising Largest Contentful Paint
csswizardry
37
3.9k
What does AI have to do with Human Rights?
axbom
PRO
1
2.4k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
4.7k
Amusing Abliteration
ianozsvald
1
290
New Earth Scene 8
popppiees
3
2.5k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.3k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
410
Making Projects Easy
brettharned
120
6.7k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.3k
4 Signs Your Business is Dying
shpigford
187
23k
Test your architecture with Archunit
thirion
2
2.4k
Transcript
Flutter テストことはじめ Flutter Meetup Tokyo #2 @takattata #flutter_meetup_tokyo
Takasy (高島 友里) @takattata アプリエンジニア (iOS/Android) Swift/Kotlin ままのて
導入:質問です! Flutterのテスト 書いたこと ありますか?
導入 新しくやり始めた時は ひとまずテストを書いてみたくなる病 ※とはいえテストに詳しい訳ではない
テストの種類 1. Unit testing 2. Widget testing 3. Integration testing
スライド全体の参照: Testing Flutter Apps 1 2 3 大きく3種類
・外部の依存関係にはモックを使う ・読み書き、UI、ユーザーのアクションは範囲外 ・目的:様々な条件下でロジック部分の正確性を検証すること Unit testing Unit package: flutter_test
Widget testing ・1つのウィジェットをテストする ・ユーザーのアクション、レイアウト、子のウィジェットを作れる 環境で行なう ・目的:ウィジェットのUIが期待通りに見え、やりとりするのを確 認すること Widget package: flutter_test
Integration testing ・シミュレータで実行する ・アプリのパフォーマンス検証もできる ・Espresso, UI Automation etc… => Flutter
Driver ・目的:アプリが正しく機能していること、構成する全てのウィ ジェットが期待通りに統合されていること Integration package: flutter_driver
GitHub: Flutter gallery Flutter Galleryの テストコードを見てみよう!
Unit testing ↑ロジックはこのクラスにある
Unit testing
Widget testing ~Stateの内容 ・validate掛ける ・personにsetStateで設定 ・見た目作る
Widget testing ↓CommonFinders
Widget testing この上でnameFieldに#を入れてる
乞うご期待 Integration testing 学んだことはブログに書くと思います
良きテストライフを!