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
jollyjoester
June 20, 2015
Technology
0
2.1k
Swiftのテストフレームワーク Quickを使ってみよう!
Swiftビギナーズ勉強会 2015/06/20 @コワーキングスペース茅場町 Co-Edo
jollyjoester
June 20, 2015
Tweet
Share
More Decks by jollyjoester
See All by jollyjoester
市民のためのセキュリティ講座
jollyjoester
0
27
コミュニティMTG in WWDC24
jollyjoester
0
290
BengaluruでLTしてきた
jollyjoester
0
320
try! Swift Tokyo 2024
jollyjoester
0
320
エンジニアが直接会う場の価値について
jollyjoester
8
4.3k
来年Proposalを出すつもりで参加するときっともっと楽しい!
jollyjoester
0
350
My favorite sessions in WWDC 23
jollyjoester
0
640
みんなでAIと戯れよう
jollyjoester
0
150
続く勉強会の作り方
jollyjoester
2
850
Other Decks in Technology
See All in Technology
CI/CD/IaC 久々に0から環境を作ったらこうなりました
kaz29
1
200
LangChain Interrupt & LangChain Ambassadors meetingレポート
os1ma
2
220
自律的なスケーリング手法FASTにおけるVPoEとしてのアカウンタビリティ / dev-productivity-con-2025
yoshikiiida
0
340
論文紹介:LLMDet (CVPR2025 Highlight)
tattaka
0
240
さくらのIaaS基盤のモニタリングとOpenTelemetry/OSC Hokkaido 2025
fujiwara3
2
240
Fabric + Databricks 2025.6 の最新情報ピックアップ
ryomaru0825
1
160
強化されたAmazon Location Serviceによる新機能と開発者体験
dayjournal
3
250
React開発にStorybookとCopilotを導入して、爆速でUIを編集・確認する方法
yu_kod
1
100
250627 関西Ruby会議08 前夜祭 RejectKaigi「DJ on Ruby Ver.0.1」
msykd
PRO
2
370
KubeCon + CloudNativeCon Japan 2025 Recap by CA
ponkio_o
PRO
0
250
生成AIで小説を書くためにプロンプトの制約や原則について学ぶ / prompt-engineering-for-ai-fiction
nwiizo
4
3.4k
Tech-Verse 2025 Global CTO Session
lycorptech_jp
PRO
0
1.2k
Featured
See All Featured
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
17
950
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.8k
It's Worth the Effort
3n
185
28k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.4k
A Modern Web Designer's Workflow
chriscoyier
694
190k
Music & Morning Musume
bryan
46
6.6k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
The Cult of Friendly URLs
andyhume
79
6.5k
GraphQLの誤解/rethinking-graphql
sonatard
71
11k
Practical Orchestrator
shlominoach
188
11k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.8k
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ʂ