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
440
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
3.9k
Is RxSwift for me? @ try! Swift NYC
icanzilb
3
23k
(Appbuilders) Non-technical ways to be a better developer
icanzilb
3
720
Non-technical ways to be a better developer
icanzilb
1
340
What's in it after the Indiepocalypse is over?
icanzilb
1
2.7k
Easy Animation at Cocoaheads Copenhagen
icanzilb
3
240
Animations with Auto Layout
icanzilb
1
150
SpriteKit with Swift workshop
icanzilb
1
960
Other Decks in Programming
See All in Programming
Findy - エンジニア向け会社紹介 / Findy Letter for Engineers
findyinc
2
81k
SDCon2024: Enabling DevOps and Team Topologies thru architecture: architecting for fast flow
cer
PRO
0
780
Composing an API the *right* way (Droidcon Berlin 2024)
zsmb
1
450
Polarsの成長: v0.14からv1.0までの変遷と今後の展望
zerebom
1
350
Namespace on read
tagomoris
2
370
Rustのweb開発を助ける 便利なツール紹介
yuki0418
1
190
なぜ宣言的 UI は壊れにくいのか / Why declarative UI is less fragile
uenitty
29
13k
小さな開発会社を作った理由
polidog
0
1.9k
日付と正規化
megmogmog1965
0
140
Rust.Nagoya #1
codemountains
0
170
入社1ヶ月でここまでやった!Findy Toolsインフラ支援の最適化
rvirus0817
6
1.4k
Ruby メモリ管理 プログラミング
megmogmog1965
0
130
Featured
See All Featured
Making Projects Easy
brettharned
111
5.7k
Done Done
chrislema
179
15k
A better future with KSS
kneath
231
17k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
228
16k
The Cult of Friendly URLs
andyhume
75
5.9k
What's in a price? How to price your products and services
michaelherold
239
11k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
23
1.9k
We Have a Design System, Now What?
morganepeng
46
7k
Building Applications with DynamoDB
mza
89
5.8k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
224
21k
YesSQL, Process and Tooling at Scale
rocio
166
14k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
189
16k
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