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
460
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
980
Other Decks in Programming
See All in Programming
Progressive Web Apps für Desktop und Mobile mit Angular (Hands-on)
christianliebel
PRO
0
110
Realtime API 入門
riofujimon
0
110
Dev ContainersとGitHub Codespacesの素敵な関係
ymd65536
1
130
Modern Angular: Renovation for Your Applications
manfredsteyer
PRO
0
210
[PyCon Korea 2024 Keynote] 커뮤니티와 파이썬, 그리고 우리
beomi
0
110
Pinia Colada が実現するスマートな非同期処理
naokihaba
2
160
Jakarta Concurrencyによる並行処理プログラミングの始め方 (JJUG CCC 2024 Fall)
tnagao7
1
230
Hotwire or React? ~Reactの録画機能をHotwireに置き換えて得られた知見~ / hotwire_or_react
harunatsujita
9
4.1k
C#/.NETのこれまでのふりかえり
tomokusaba
1
160
GitHub Actionsのキャッシュと手を挙げることの大切さとそれに必要なこと
satoshi256kbyte
5
390
レガシーな Android アプリのリアーキテクチャ戦略
oidy
1
170
Tuning GraphQL on Rails
pyama86
2
1k
Featured
See All Featured
Fireside Chat
paigeccino
32
3k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
14
1.9k
The Art of Programming - Codeland 2020
erikaheidi
51
13k
Docker and Python
trallard
40
3.1k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
7
150
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
92
16k
A Modern Web Designer's Workflow
chriscoyier
692
190k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
Raft: Consensus for Rubyists
vanstee
136
6.6k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
GraphQLとの向き合い方2022年版
quramy
43
13k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
246
1.3M
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