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
Swiftのテストフレームワーク Quickを使ってみよう!
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
jollyjoester
June 20, 2015
Technology
0
2.2k
Swiftのテストフレームワーク Quickを使ってみよう!
Swiftビギナーズ勉強会 2015/06/20 @コワーキングスペース茅場町 Co-Edo
jollyjoester
June 20, 2015
Tweet
Share
More Decks by jollyjoester
See All by jollyjoester
AIコードアシスタントとiOS開発
jollyjoester
1
340
市民のためのセキュリティ講座
jollyjoester
0
62
コミュニティMTG in WWDC24
jollyjoester
0
320
BengaluruでLTしてきた
jollyjoester
0
370
try! Swift Tokyo 2024
jollyjoester
0
360
エンジニアが直接会う場の価値について
jollyjoester
8
4.5k
来年Proposalを出すつもりで参加するときっともっと楽しい!
jollyjoester
0
400
My favorite sessions in WWDC 23
jollyjoester
0
700
みんなでAIと戯れよう
jollyjoester
0
160
Other Decks in Technology
See All in Technology
クレジットカード決済基盤を支えるSRE - 厳格な監査とSRE運用の両立 (SRE Kaigi 2026)
capytan
6
2.4k
茨城の思い出を振り返る ~CDKのセキュリティを添えて~ / 20260201 Mitsutoshi Matsuo
shift_evolve
PRO
1
170
データ民主化のための LLM 活用状況と課題紹介(IVRy の場合)
wxyzzz
2
660
Introduction to Bill One Development Engineer
sansan33
PRO
0
360
Claude_CodeでSEOを最適化する_AI_Ops_Community_Vol.2__マーケティングx_AIはここまで進化した.pdf
riku_423
1
410
Digitization部 紹介資料
sansan33
PRO
1
6.8k
予期せぬコストの急増を障害のように扱う――「コスト版ポストモーテム」の導入とその後の改善
muziyoshiz
1
1.5k
日本の85%が使う公共SaaSは、どう育ったのか
taketakekaho
1
130
MCPでつなぐElasticsearchとLLM - 深夜の障害対応を楽にしたい / Bridging Elasticsearch and LLMs with MCP
sashimimochi
0
140
Azure Durable Functions で作った NL2SQL Agent の精度向上に取り組んだ話/jat08
thara0402
0
140
Databricks Free Edition講座 データサイエンス編
taka_aki
0
290
SREのプラクティスを用いた3領域同時 マネジメントへの挑戦 〜SRE・情シス・セキュリティを統合した チーム運営術〜
coconala_engineer
2
570
Featured
See All Featured
Agile that works and the tools we love
rasmusluckow
331
21k
Rails Girls Zürich Keynote
gr2m
96
14k
The untapped power of vector embeddings
frankvandijk
1
1.6k
Typedesign – Prime Four
hannesfritz
42
2.9k
The Pragmatic Product Professional
lauravandoore
37
7.1k
GitHub's CSS Performance
jonrohan
1032
470k
We Have a Design System, Now What?
morganepeng
54
8k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
300
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
76
Music & Morning Musume
bryan
47
7.1k
Transcript
SwiftͷςετϑϨʔϜϫʔΫ QuickΛͬͯΈΑ͏ʂ SwiftϏΪφʔζษڧձ 2015/06/20
• ࣣౡҒ೭ʢͳͳ͠·ͻͰΏ͖ʣ • Repro.Inc / ྑΤϯδχΞ • iPhone / Android
• Java -> Objective-C -> Swift
https://repro.io/
Repro
ຊॻ͖·ͨ͠ʂ • 2015/04/10ɹٕज़ධ͔ࣾΒൃച ೦ͳ͕ΒSwift1.1࣌ Ͱਖ਼ޡදͱαϯϓϧϓϩάϥϜSwift1.2ରԠ
Quick is a behavior-driven development framework for Swift and Objective-C
Inspired by RSpec, Specta, and Ginkgo.
behavior-driven development BBD? ϓϩάϥϜͷಈ࡞͕ਖ਼͍͔͠Ͳ͏͔Λݕূ͢ΔͨΊʹߦ͏ʮςετʯ + ظ͞ΕΔʮৼΔ͍ʯʮ੍݅ʯΛࣗવݴޠͰซه from wikipedia
Example https://github.com/Quick/QuickͷυΩϡϝϯτΑΓ
ͬͦ͘͞ಋೖͯ͠ΈΑ͏ • Xcode6.3 & Swift1.2 • ಋೖํ๏ • Git Submodules
• CocoaPods ← ࠓճ͍ͭ͜Ͱ(※Version 0.36.0 Ҏ্͕ඞཁ) • Carthage
New project ͋Γ͕ͪͳQuickSampleͱ͓ͯ͘͠
pod install Podfile target : ςετϓϩδΣΫτͷTarget use_frameworks! : SwiftΛ͏ͷʹඞཁ pod
‘Quick’, ‘0.3.0’ : Swift1.2Ͱ͑Δόʔδϣϯ pod ‘Nimble’ : QuickͰ͏Matcher
Build Settings Build Settings -> Defines ModuleΛYESʹ
͋Γ͕ͪͳܭࢉΫϥεΛ࡞ͬͯΈΔ ςετ͢Δclass, methodpublicʹ
ςετΫϥε࡞ Alcatraz͔ΒTemplateΠϯετʔϧͰ͖ΔΑ
import module • ͖ͬ͞Defines ModuleΛYESʹͨ͠ͷͰ ·ΔͬͱςετTarget͔ΒࢀরͰ͖ΔΑ͏ʹͳΔ
ॳΊͯͷςετίʔυ
ςετ࣮ߦʂ Command + U ↓ ↓ ↓
Have nice Devʂ