RxAndroid
robolectric
Our great sponsors
RxAndroid | robolectric | |
---|---|---|
4 | 8 | |
19,865 | 5,792 | |
0.1% | 0.4% | |
4.7 | 9.8 | |
4 days ago | 2 days ago | |
Java | Java | |
Apache License 2.0 | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
RxAndroid
-
How to do threading in Android.
Since you mentioned java, there is RxJava and RxAndroid. Google general recommendation now is to use kotlin coroutines if you're considering writing your app with that.
-
Best libraries for Android Developers
RxAndroid
-
RxAndroid - can someone give me some links for good articles and github projects?
Well, as mentioned in the RxAndroid's Readme, it's only Android extensions to RxJava. It makes it easy to subscribe or observe on the main thread or a specific looper. So just focusing on learning RxJava should be enough. You can find many resources for that, here is a compilation: http://reactivex.io/tutorials.html
-
A foss "PDF scanner", alternatives to CamScanner
Project: RxAndroid (Android specific bindings for RxJava) Copyright (c) 2015 The RxAndroid authors. License (Apache License Version 2.0) https://github.com/ReactiveX/RxAndroid/blob/master/LICENSE
robolectric
-
Best libraries for Android Developers
Robolectric
-
What should the View layer be responsible for in Android?
Do you use Robolectric to test string resolving?
-
Testing Jetpack Compose with Robolectric
@Config(instrumentedPackages = ["androidx.loader.content"]) is a workaround for https://github.com/robolectric/robolectric/issues/6593
-
Testing Jetpack Compose without emulator or device
There is also an issue with Robolectric which can be worked around by adding @Config(instrumentedPackages = ["androidx.loader.content"]) annotation to the test class.
-
Trouble with room migrations
If it's failing only on robo, this might be the cause: https://github.com/robolectric/robolectric/issues/6411
-
How else do you test your apps, apart from Unit Testing?
Unit tests. ~X0,000. These run on the jvm (not Android), via http://robolectric.org/
-
Where do you write the test class in your classes that need context?
Take a look at http://robolectric.org. It has a specific JUnitRunner class for running unit tests in the test package with shadow classes for Android objects like application context. It is broadly used and there are a lot of examples on github and robolectric provides several themselves
- Robolectric 4.5 Beta 1 is now available
What are some alternatives?
EventBus - Event bus for Android and Java that simplifies communication between Activities, Fragments, Threads, Services, etc. Less code, better quality.
JUnit - A programmer-oriented testing framework for Java.
RxJava - RxJava – Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM.
PowerMock - PowerMock is a Java framework that allows you to unit test code normally regarded as untestable.
otto
robotium - Android UI Testing
tinybus
robolectric - Android Unit Testing Framework
Drekkar - An Android event bus for WebView and JS.
LiveData Testing - TestObserver to easily test LiveData and make assertions on them.
NetworkEvents
selendroid - "Selenium for Android" (Test automate native or hybrid Android apps and the mobile web with Selendroid.) Join us on IRC #selendroid on freenode. Also confirm you have signed the CLA http://goo.gl/pAvxEI when making a Pull Request.