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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
takattata
May 31, 2018
Programming
860
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
920
Kotlinのコントリビュートに挑戦してみたよ!
takattata
3
300
導入画面を実装したよ
takattata
1
2k
AndroidXに移行しようと`してみた`!
takattata
2
740
Flutter
takattata
3
1.6k
ディープリンクを実装した
takattata
1
1.9k
introduce unit testing
takattata
1
600
xUnit Test Patterns の序章
takattata
1
390
プロジェクトの1ファイルに単体テストを書いてみた!〜本当にこれで合ってるの…??🤔〜
takattata
0
2.4k
Other Decks in Programming
See All in Programming
Performance Engineering for Everyone
elenatanasoiu
0
170
Vue × Nuxt × Oxc どこまで使える?実運用の現在地
andpad
0
260
Oxcを導入して開発体験が向上した話
yug1224
4
320
AI 輔助遺留系統現代化的經驗分享
jame2408
1
630
軽量Java基盤の設計 DIコンテナに頼らない、長期保守と1秒起動の実現 JJUG CCC 2026 Spring
macha64
0
540
脅威をエンジニアリングの糧にして――現場編 / Turning Threats into Engineering Fuel — Field Edition
nrslib
0
280
The NotImplementedError Problem in Ruby
koic
1
820
フロントエンドとバックエンドで「1文字」を揃えよう
youkidearitai
PRO
0
710
A2UI という光を覗いてみる
satohjohn
1
140
LLMによるContent Moderationの本番運用の裏側と品質担保への挑戦
suikabar
3
700
AIだと陥りがちなJakarta EE最新技術への移行時の落とし穴と解決策
tnagao7
0
110
LLM本来の能力を解き放つサンドボックス技術とAI民主化への適用
yukukotani
3
4.3k
Featured
See All Featured
Paper Plane (Part 1)
katiecoart
PRO
0
9.1k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
200
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.5k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.7k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.5k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
400
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
320
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
360
Google's AI Overviews - The New Search
badams
0
1k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
160
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 学んだことはブログに書くと思います
良きテストライフを!