Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Let's write RxTesting Code

Let's write RxTesting Code

RxTest와 RxBlocking을 사용하여 MVVM + RxSwift 아키텍처를 가진 앱의 테스트 코드를 작성해봅시다.

Byeong Chan - Lee

November 12, 2019
Tweet

More Decks by Byeong Chan - Lee

Other Decks in Programming

Transcript

  1. যڃ ز੘ਸ ࣻ೯ ೮ਸ ٸ 1) ਗೞח ч੉ աয়ח૑ Ѩૐ

    2) োࣘغযঠ ೞח ز੘੉ ࣻ೯غח૑ Ѩૐ 5FTU$PEFۆ
  2. - ColdObservable੄ Eventܳ Ѩૐೡ ٸ ࢎਊ - ౠ੿ दрزউ ߑ୹ػ

    Observable੄ Eventب Ѩૐ оמ • HotObservableب ࢎਊ оמ 3Y#MPDLJOH਷
  3. 1ୡ 2ୡ 3ୡ 4ୡ 5ୡ ➜ [ (, 1ୡ), (,

    2ୡ), (, 3ୡ), (, 4ୡ), (, 5ୡ) ] ➜ 3ୡী о ա৳חо?
  4. 1ୡ 2ୡ 3ୡ 4ୡ 5ୡ ҙ଴ ➜ ➜ [ (,

    1ୡ), (, 2ୡ), (, 3ୡ), (, 4ୡ), (, 5ୡ) ]
  5. - Observableী दрѐ֛ਸ ֍যષ • ੉ܳ ా೧ ঱ઁ ޖ঺੉ ա৳ח૑

    Ѩૐ оמ - Observerܳ ా೧ Hot, Cold ݽف Ѩૐоמ • о࢚੄ दр੉ ׮ ൒ܳ ٸө૑ ҙ଴ റ ఋ੉߁җ Event ߈ജ 3Y5FTUח
  6. - tapped غ঻ਸ ٸ ݃׮ ਗೞח ч੉ ੿࢚੸ਵ۽ աয়ח૑ Ѩૐ

    - Responseী ࢚ҙহ੉ ৘࢚ೞח Ѿҗо աয়ח૑ MPBEJOH5FTU$BTF
  7. - Mocking, о࢚੄ दр, Observer.. ঱ઁ ߓ਋ա? - TestCodeࠁ׮ ӝמ

    ѐߊ੉ ؊ ਋ࢶ ইפঠ? 3Y#MPDLJOH 3Y5FTU