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
Flutterテストことはじめ
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
takattata
May 31, 2018
Programming
1
840
Flutterテストことはじめ
@Flutter Meetup Tokyo #2
#flutter_meetup_tokyo
takattata
May 31, 2018
Tweet
Share
More Decks by takattata
See All by takattata
What's DDD?
takattata
5
910
Kotlinのコントリビュートに挑戦してみたよ!
takattata
3
300
導入画面を実装したよ
takattata
1
2k
AndroidXに移行しようと`してみた`!
takattata
2
730
Flutter
takattata
3
1.6k
ディープリンクを実装した
takattata
1
1.9k
introduce unit testing
takattata
1
590
xUnit Test Patterns の序章
takattata
1
380
プロジェクトの1ファイルに単体テストを書いてみた!〜本当にこれで合ってるの…??🤔〜
takattata
0
2.3k
Other Decks in Programming
See All in Programming
「ブロックテーマでは再現できない」は本当か?
inc2734
0
1k
AIフル活用時代だからこそ学んでおきたい働き方の心得
shinoyu
0
140
FOSDEM 2026: STUNMESH-go: Building P2P WireGuard Mesh Without Self-Hosted Infrastructure
tjjh89017
0
170
Apache Iceberg V3 and migration to V3
tomtanaka
0
160
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
190
React 19でつくる「気持ちいいUI」- 楽観的UIのすすめ
himorishige
11
7.4k
Oxlintはいいぞ
yug1224
5
1.3k
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
21
7.2k
16年目のピクシブ百科事典を支える最新の技術基盤 / The Modern Tech Stack Powering Pixiv Encyclopedia in its 16th Year
ahuglajbclajep
5
1k
CSC307 Lecture 05
javiergs
PRO
0
500
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
2.3k
Spinner 軸ズレ現象を調べたらレンダリング深淵に飲まれた #レバテックMeetup
bengo4com
1
230
Featured
See All Featured
Raft: Consensus for Rubyists
vanstee
141
7.3k
Exploring anti-patterns in Rails
aemeredith
2
250
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
300
GitHub's CSS Performance
jonrohan
1032
470k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
94
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
310
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
The untapped power of vector embeddings
frankvandijk
1
1.6k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.4k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
450
Darren the Foodie - Storyboard
khoart
PRO
2
2.4k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.7k
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 学んだことはブログに書くと思います
良きテストライフを!