IdlingResource居preSSO与RxJava [英] IdlingResource Espresso with RxJava

查看:296
本文介绍了IdlingResource居preSSO与RxJava的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我将我的应用程序使用异步任务rxjava。现在,我的ES preSSO测试我的数据调用完成,由于ES preSSO没有怠速资源rxjava不再等待。我注意到,你可以自定义的闲置资源,但我无法弄清楚如何使它与rxJava调度,Scheduler.io具体工作。任何帮助/最好的做法是大大AP preciated。

I recently converted my application from using async tasks to rxjava. Now, my espresso tests no longer wait for my data calls to complete due to espresso not having an idling resources for rxjava. I noticed that you can make custom idling resources but I can't figure out how to make it work with rxJava Schedulers, Scheduler.io specifically. Any help/best practice would be greatly appreciated.

推荐答案

写RxJava插件和Es preSSO之间的一个小的集成作品。希望这可以帮助别人。

Wrote a little integration piece between RxJava Plugins and Espresso. Hope this helps someone else.

https://gist.github.com/digitalbuddha/d886eae1578bca78b9bf

这篇关于IdlingResource居preSSO与RxJava的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆