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
テストはじめました.pdf
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
tiking
August 22, 2020
180
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
テストはじめました.pdf
tiking
August 22, 2020
More Decks by tiking
See All by tiking
デザインシステムっていいな
tiking76
0
300
GraphQL 入門
tiking76
0
1.6k
みんなTCAって 知ってる?ver2.0
tiking76
1
380
みんなTCAって知ってる?
tiking76
0
1.1k
最近きてるかもって思ってるデザイン
tiking76
0
300
Swiftのちょっとうれしい構文
tiking76
0
150
p1assさんを作ろうと試みました
tiking76
0
180
PRのときに使われがちな略語のやつ
tiking76
0
150
swiftでもグラフ書いてみたくない??
tiking76
0
290
Featured
See All Featured
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Practical Orchestrator
shlominoach
191
12k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
How GitHub (no longer) Works
holman
316
150k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Building the Perfect Custom Keyboard
takai
2
860
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
65k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
310
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
470
Transcript
テストはじめました Zli×CA合同LT 2020/08/22 tiking
Readme name : 舘佳紀 colleage : 会津大学学部3年 さーくる : Zli所属です
Handlename : チキング 好きな言語 swift twitter @tikin0716 gitHub tiking76
みなさんテスト書いてますか??
テストってどんなのがあるの??
テストを書くことのメリット • 動作する綺麗なコードが書ける • もしバグが見つかってとしてテストがすぐに教えてくれるので、原因の特定がしやす く修正時間が短くなり手戻りが最小になります。 • 開発サイクル無いで常に動作保証があるので、安心して開発を進められる。 • 責務の切り分けが容易になる
今回やっていくのは 単体テストと機能テスト
単体テスト 単体テスト(ユニットテスト)は、一つのメソッドもしくは一つのクラスのテストを指します。 開発者の設計した通りに動くかを確認するテスト 開発者がテストを行います
実際にやってみた
機能テスト 機能テストは機能が仕様通りにきちんと動作しているかのテストを指します。 要件通りに動くかを確認するテストで、ユーザーもしくはビジネス要件を引き出し何をつく るを決定する役割の人が行うテストです。
モックオブジェクト 技法 テストのために、 インターフェースは本物と同じで中 身だけ偽物のオブジェクトを使う。
DI(Dependency Injection) : 依存性の注入 依存性をもったオブジェクトを外部からわた すこと。 デザインパターンの一種。
実際にやってみた
やってみての感想 ・テストって案外ハードル低いんだ… ・テストを意識して書いているとリファクタリングしやすいことが大きな気づきになった。
LT駆動開発最高!!
参考になりました ・さわって学べる! iOSテスト駆動開発 - shindyu - BOOTH ・単体テストのハジメ ・猿でも分かる! Dependency
Injection: 依存性の注入
ここまでありがとうございました