際際滷
Submit Search
RxSwift Testing ?? ???? feat. RxBlocking, RxTest
?
3 likes
?
964 views
Byeongchan Lee
Follow
RxBlocking? RxTest? ?? RxSwift? ????? ?? ???? ?????.
Read less
Read more
1 of 89
Download now
Downloaded 20 times
More Related Content
RxSwift Testing ?? ???? feat. RxBlocking, RxTest
1.
???????? RxTest ?? ???? RxTest,
RxBlocking? ?? ????!
2.
???????? RxTest ?? ???? RxTest,
RxBlocking? ?? ????!
3.
1. TestCode, ObservableTestCode?? 2.
RxBlocking? ?? 3. RxTest? ?? 4. RxSwift? ??????! ??
4.
1. TestCode??
5.
?? ??? ??
?? ? 1) ??? ?? ???? ?? 2) ????? ?? ??? ????? ?? TestCode??
6.
??? ?? ????
7.
??? ?? ????
8.
??? ?? ????
9.
??? ?? ???? ??
??? ??? ???? ??
10.
????? ?? ???
?????
11.
????? ?? ???
?????
12.
????? ?? ???
?????
13.
????? ?? ???
?????
14.
????? ?? ???
????? ????? ?? ??? ?? ??
15.
?? Observable??
17.
RxTest ??? "???"
21.
Event? ????? ??
?? ???? subscribe?? Event? ?? ?? ????
22.
Hot Observable? ??? reduce?
????´
23.
???? ???? Event?
???? ???? ?? ??? ? Event? ???? ???? ????
25.
/* Event? ????
??? ? ??? ? /* ??? ?? ??? ???? ???? ??
26.
RxBlocking RxTest ???, ????
?????
27.
2. RxBlocking
28.
? ? ?
? ?
29.
? ? ?
? ? ? [ ?, ?, ?, ?, ? ]
33.
onComplete? ??? ??? ????´
35.
? ? ?
? ? ? [ ?, ?, ?, ?, ? ] onComplete? ? ???? ?
36.
.toBlocking(timeout: RxTimeInterval?)
37.
? ? ?
? ? [ ?, ?, ? ] ?
38.
- ColdObservable? Event?
??? ? ?? - ?? ???? ??? Observable? Event? ?? ?? ? HotObservable? ?? ?? RxBlocking?
39.
3. RxTest
40.
1? 2? 3?
4? 5? ? ? ? ? ? ? [ (?, 1?), (?, 2?), (?, 3?), (?, 4?), (?, 5?) ] ? 3?? ?? ?????
44.
let buttonTapped =
s.createHotObservable([ .next(1, Void()), .next(3, Void()) ])
45.
??? ??? ???? ???
??
46.
??? ???? ??? ????
??? ??
47.
1? 2? 3?
4? 5? ? ? ? ? ? ? ?? ? ?? [ (?, 1?), (?, 2?), (?, 3?), (?, 4?), (?, 5?) ]
48.
? ??? ???
?? ?? ??? ?? ?
49.
? ??? ???
?? ?? ??? ?? ? Observable? ??? ??? ??X
50.
? ??? ???
?? ?? ??? ?? ? Hot Observable? ??? ??!
54.
??? ??? ??
?????..
56.
- Observable? ?????
??? ? ?? ?? ?? ??? ???? ?? ?? - Observer? ?? Hot, Cold ?? ???? ? ??? ??? ? ?? ??? ?? ? ???? Event ?? RxTest??
57.
4. RxSwift? ?????
59.
- ??? ??
????? ???? ?? - Response? ???? ???? ??? ???? "isLoading" TestCase
67.
?
69.
- tapped ???
? ?? ??? ?? ????? ???? ?? - Response? ???? ???? ??? ???? "loading" TestCase
79.
? ? ?
80.
- Mocking, ???
??, Observer.. ?? ???? - TestCode?? ?? ??? ? ?? ???? RxBlocking, RxTest....
81.
func removeAllData() { /*
?? */ Implements() }
82.
func removeAllData() { /*
?? */ Implements() } ?? ???? ??? ???? ????
83.
???? ??? ?
?? ??? ?? ? Hot?x
84.
TestCode? ??? ??? ????
????? ??
85.
RxSwift? TestCode? Observable? ????
????? ??
86.
^RxSwift & ??????
?? ??? ??? ???? ???? ??? ?????. ̄
87.
- RxTest, RxBlocking ?
https://www.raywenderlich.com/7408-testing-your-rxswift-code ? https://github.com/ReactiveX/RxSwift/blob/master/Documentation/UnitTests.md - Nimble ? https://github.com/Quick/Nimble - Stubber ? https://github.com/devxoul/Stubber ????
88.
slido.com / #P445
Download