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
Testing RxRealm with RxBlocking
Search
Marin Todorov
December 06, 2017
Programming
0
530
Testing RxRealm with RxBlocking
Realm + RxSwift testing with RxBlocking
Marin Todorov
December 06, 2017
Tweet
Share
More Decks by Marin Todorov
See All by Marin Todorov
RxSwift on iOS
icanzilb
4
4k
Is RxSwift for me? @ try! Swift NYC
icanzilb
3
23k
(Appbuilders) Non-technical ways to be a better developer
icanzilb
3
790
Non-technical ways to be a better developer
icanzilb
1
400
What's in it after the Indiepocalypse is over?
icanzilb
1
2.8k
Easy Animation at Cocoaheads Copenhagen
icanzilb
3
290
Animations with Auto Layout
icanzilb
1
180
SpriteKit with Swift workshop
icanzilb
1
1k
Other Decks in Programming
See All in Programming
RubyとGoでゼロから作る証券システム: 高信頼性が求められるシステムのコードの外側にある設計と運用のリアル
free_world21
0
130
CSC307 Lecture 13
javiergs
PRO
0
310
izumin5210のプロポーザルのネタ探し #tskaigi_msup
izumin5210
1
500
DSPy入門 Pythonで実現する自動プロンプト最適化 〜人手によるプロンプト調整からの卒業〜
seaturt1e
1
390
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
340
AIとペアプロして処理時間を97%削減した話 #pyconshizu
kashewnuts
1
170
CSC307 Lecture 11
javiergs
PRO
0
580
Go1.26 go fixをプロダクトに適用して困ったこと
kurakura0916
0
310
浮動小数の比較について
kishikawakatsumi
0
360
15年目のiOSアプリを1から作り直す技術
teakun
0
570
オブザーバビリティ駆動開発って実際どうなの?
yohfee
2
630
モジュラモノリスにおける境界をGoのinternalパッケージで守る
magavel
0
3.3k
Featured
See All Featured
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Navigating Weather and Climate Data
rabernat
0
130
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
The SEO identity crisis: Don't let AI make you average
varn
0
400
First, design no harm
axbom
PRO
2
1.1k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Building Adaptive Systems
keathley
44
2.9k
Prompt Engineering for Job Search
mfonobong
0
180
GraphQLとの向き合い方2022年版
quramy
50
14k
The Cult of Friendly URLs
andyhume
79
6.8k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
2
65
Transcript
Testing RxRealm with RxBlocking RxSwift Berlin Marin Todorov
RxRealm realm.io
None
None
• Completely Asynchronous • Notifications will be bundled by Realm
• Objects can change over time Testing Realm
Test: collection emits when objects added [Message1] Realm.rx.add(...) Observer Observable<Results<Message>>
[Message1]
RxTest
RxTest
RxTest
Test: collection emits when objects added [Message1] Realm.rx.add(...) Observer Observable<Results<Message>>
[Message1]
RxBlocking
RxBlocking!
Some Numbers RxRealm test suite with RxTest: 1570 loc RxRealm
test suite with RxBlocking: 921 loc
Test: observer handles error when observable errors out
Test: collection emits when objects deleted
Test: eventually changes from all threads will emit ... add
objects on main queue, on background queque, sync on current queue, etc...
None
Test: view model emits when speaker favorited
Test: model emits when resultset changes ... ...
• EventKit - github.com/realm/EventKit • RxRealm - github.com/RxSwiftCommunity/RxRealm • RxBook
- store.raywenderlich.com/products/rxswift Marin Todorov @icanzilb Updated! RxSwift 4