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
1
850
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
AI時代の脳疲弊と向き合う ~言語学としてのPHP~
sakuraikotone
1
1.4k
野球解説AI Agentを開発してみた - 2026/02/27 LayerX社内LT会資料
shinyorke
PRO
0
350
Ruby and LLM Ecosystem 2nd
koic
1
1.2k
ふつうの Rubyist、ちいさなデバイス、大きな一年
bash0c7
0
1.1k
車輪の再発明をしよう!PHP で実装して学ぶ、Web サーバーの仕組みと HTTP の正体
h1r0
2
240
Windows on Ryzen and I
seosoft
0
340
ロボットのための工場に灯りは要らない
watany
11
3k
ポーリング処理廃止によるイベント駆動アーキテクチャへの移行
seitarof
3
1.1k
Migration to Signals, Signal Forms, Resource API, and NgRx Signal Store @Angular Days 03/2026 Munich
manfredsteyer
PRO
0
120
コーディングルールの鮮度を保ちたい / keep-fresh-go-internal-conventions
handlename
0
220
Kubernetesでセルフホストが簡単なNewSQLを求めて / Seeking a NewSQL Database That's Simple to Self-Host on Kubernetes
nnaka2992
0
170
コードレビューをしない選択 #でぃーぷらすトウキョウ
kajitack
3
1k
Featured
See All Featured
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
130
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
Optimising Largest Contentful Paint
csswizardry
37
3.6k
Discover your Explorer Soul
emna__ayadi
2
1.1k
Visualization
eitanlees
150
17k
HDC tutorial
michielstock
1
570
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
64
54k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.8k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
130
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
22k
The World Runs on Bad Software
bkeepers
PRO
72
12k
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 学んだことはブログに書くと思います
良きテストライフを!