Thursday, April 25, 2013

Android unit testing with Robolectric - learning with examples

Here are some simple examples to learn unit testing android code using robolectric quickly.

Robolectric examples :


  1. Which Asus mother board supports intel i3 2100 Giveme list


  2. Robolectric provides a JVM compliant version of the android.jar file. Robolectric handles inflation of views, resource loading, and lots of other stuff that’s implemented in native C code on Android devices. You can apply new pan card here. This enables you to run your Android tests in your continuous integration environment without any additional setup. Robolectric supports resource handling, e.g., inflation of views. You can also use the findViewById() to search in a view.Robolectric is not an integration test framework, i.e., you cannot not test the interaction of Android components with it.