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
420
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.8k
Is RxSwift for me? @ try! Swift NYC
icanzilb
3
23k
(Appbuilders) Non-technical ways to be a better developer
icanzilb
3
700
Non-technical ways to be a better developer
icanzilb
1
320
What's in it after the Indiepocalypse is over?
icanzilb
1
2.7k
Easy Animation at Cocoaheads Copenhagen
icanzilb
3
230
Animations with Auto Layout
icanzilb
1
150
SpriteKit with Swift workshop
icanzilb
1
940
Other Decks in Programming
See All in Programming
品質とスピードを両立: TypeScriptの柔軟な型システムをバックエンドで活用する
kosui
5
1.1k
Swiftの型推論を学ぼう | Let's Learn About Type Inference in Swift
omochi
2
740
両面どころかインフラもTSでできるよ ~ 全方位TypeScriptによるプロダクト開発 ~
myfinder
9
2.5k
自動テスト実行結果の目的を整理する / Organizing objectives of automated test results
twada
PRO
10
2.1k
プロンプトエンジニアリング入門
tomokusaba
2
990
Material 3で Material 2ぽい見た目にする
numeroanddev
2
250
Compiling Python to WebAssembly with py2wasm
syrusakbary
0
140
DDD, necessary but insufficient: physical design principles for microservices
cer
PRO
0
2.2k
object-oriented-conference-2024
fuwasegu
6
2k
実践!RDRAを活用した既存システムの仕様変更 / Specification Changes in Existing Systems Utilizing RDRA
imamotohikaru
0
2.7k
[スクリプト] Swiftの型推論を学ぼう
omochi
0
120
Dockerで始めるAWS Lambda開発
stutkhd0709
14
2.5k
Featured
See All Featured
Build your cross-platform service in a week with App Engine
jlugia
223
17k
Writing Fast Ruby
sferik
619
59k
A Tale of Four Properties
chriscoyier
150
22k
Building Effective Engineering Teams - LeadDev
addyosmani
25
1.8k
From Idea to $5000 a Month in 5 Months
shpigford
376
45k
The Pragmatic Product Professional
lauravandoore
24
5.7k
GraphQLの誤解/rethinking-graphql
sonatard
48
9.1k
What's new in Ruby 2.0
geeforr
335
31k
Statistics for Hackers
jakevdp
789
220k
How GitHub (no longer) Works
holman
301
140k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
355
22k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
19
1.9k
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