Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fedepaol/TestingRxJava

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TestingRxJava

RxJava is asynchronous by nature, so unit testing it might seem a daunting at first, especially if you use that asynchronous interaction to test stuff. Luckily, RxJava (and RxAndroid) come with a couple of tools that will make our life a lot easier.

This sample projects demonstrates how to:

  • test an observable (or a transformation of one or more observables) by using TestSubscriber
  • test how your app react to a subscription by mocking the real observable and overriding the default rxjava / rxandroid schedulers

More details can be found in this post from my blog

About

Sample project to demonstrate how to unit test observables and subscriptions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages