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
Lambda のコードストレージ容量に気をつけましょう
tattwan718
0
130
【卒業研究】会話ログ分析によるユーザーごとの関心に応じた話題提案手法
momok47
0
200
「ブロックテーマでは再現できない」は本当か?
inc2734
0
970
開発者から情シスまで - 多様なユーザー層に届けるAPI提供戦略 / Postman API Night Okinawa 2026 Winter
tasshi
0
200
15年続くIoTサービスのSREエンジニアが挑む分散トレーシング導入
melonps
2
200
Oxlintはいいぞ
yug1224
5
1.3k
Basic Architectures
denyspoltorak
0
670
Implementation Patterns
denyspoltorak
0
280
CSC307 Lecture 03
javiergs
PRO
1
490
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
コントリビューターによるDenoのすゝめ / Deno Recommendations by a Contributor
petamoriken
0
200
Apache Iceberg V3 and migration to V3
tomtanaka
0
160
Featured
See All Featured
How to Think Like a Performance Engineer
csswizardry
28
2.4k
Amusing Abliteration
ianozsvald
0
100
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
430
Building Adaptive Systems
keathley
44
2.9k
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.1k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
770
Raft: Consensus for Rubyists
vanstee
141
7.3k
Test your architecture with Archunit
thirion
1
2.2k
WCS-LA-2024
lcolladotor
0
450
The Pragmatic Product Professional
lauravandoore
37
7.1k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.7k
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