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
テストはじめました.pdf
Search
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
310
GraphQL 入門
tiking76
0
1.6k
みんなTCAって 知ってる?ver2.0
tiking76
1
380
みんなTCAって知ってる?
tiking76
0
1.1k
最近きてるかもって思ってるデザイン
tiking76
0
300
Swiftのちょっとうれしい構文
tiking76
0
160
p1assさんを作ろうと試みました
tiking76
0
180
PRのときに使われがちな略語のやつ
tiking76
0
160
swiftでもグラフ書いてみたくない??
tiking76
0
290
Featured
See All Featured
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.6k
What does AI have to do with Human Rights?
axbom
PRO
1
2.4k
Navigating Team Friction
lara
192
16k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.2k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
450
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
370
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
340
Statistics for Hackers
jakevdp
799
230k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
Paper Plane
katiecoart
PRO
4
53k
Fireside Chat
paigeccino
43
4k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
540
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: 依存性の注入
ここまでありがとうございました