Fast and reliable UI tests on Android
Iván Carballo
1626

Great post! I think that the junit rules can be very useful in many situations, this is a great example.

I am working on a library similar to what you explain in this post, it allows to creare a test module on the fly using a custom rule. Using this library the test code is very simple. You can find the library on github here: https://github.com/fabioCollini/DaggerMock