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
AIコードアシスタントとiOS開発
jollyjoester
1
290
市民のためのセキュリティ講座
jollyjoester
0
39
コミュニティMTG in WWDC24
jollyjoester
0
300
BengaluruでLTしてきた
jollyjoester
0
340
try! Swift Tokyo 2024
jollyjoester
0
330
エンジニアが直接会う場の価値について
jollyjoester
8
4.4k
来年Proposalを出すつもりで参加するときっともっと楽しい!
jollyjoester
0
360
My favorite sessions in WWDC 23
jollyjoester
0
650
みんなでAIと戯れよう
jollyjoester
0
150
Other Decks in Technology
See All in Technology
人と組織に偏重したEMへのアンチテーゼ──なぜ、EMに設計力が必要なのか/An antithesis to the overemphasis of people and organizations in EM
dskst
6
660
帳票Vibe Coding
terurou
0
150
実践データベース設計 ①データベース設計概論
recruitengineers
PRO
4
970
Webアクセシビリティ入門
recruitengineers
PRO
2
890
Browser
recruitengineers
PRO
5
1.3k
Postman MCP 関連機能アップデート / Postman MCP feature updates
yokawasa
1
180
RAID6 を楔形文字で組んで現代人を怖がらせましょう(実装編)
mimifuwa
1
320
事業価値と Engineering
recruitengineers
PRO
6
3.9k
コスト削減の基本の「キ」~ コスト消費3大リソースへの対策 ~
smt7174
2
240
小さなチーム 大きな仕事 - 個人開発でAIをフル活用する
himaratsu
0
130
我々は雰囲気で仕事をしている / How can we do vibe coding as well
naospon
2
220
Yahoo!広告ビジネス基盤におけるバックエンド開発
lycorptech_jp
PRO
1
290
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
268
13k
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
Gamification - CAS2011
davidbonilla
81
5.4k
The Power of CSS Pseudo Elements
geoffreycrofte
77
5.9k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
31
2.2k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.4k
Designing for Performance
lara
610
69k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
50
5.5k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
131
19k
The Cost Of JavaScript in 2023
addyosmani
53
8.8k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
185
54k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.4k
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ʂ