Robolectric is a unit testing framework that allows Android applications to be tested on the JVM in seconds without using an emulator or device.
I've created a new TestProject and added following line to my testMethod: Robolectric.getShadowApplication().getString(R.string.mystring); My test …
android android-manifest robolectricI am running into the issue where Robolectric is having trouble with my AndroidManifest.xml. My app runs fine, but …
android gradle robolectricIn short, I want to know, is there a JVM command-line option to change the starting working directory? If it's …
java android jvm robolectric infinitestI'm using Robolectric to test Android. I'm running my tests via maven, e.g. mvn -Dtest=LogTest test If I …
java android maven-2 roboguice robolectricI'm trying to import Robolectric into my Maven project, with: <dependency> <groupId>com.pivotallabs</groupId&…
maven robolectric sonatypeI've set up a very simple project to test the integration of Robolectric + Data Binding + Retrolambda. When I run the …
android data-binding robolectric retrolambdaAndroid Studio 3.0 Beta2 classpath 'com.android.tools.build:gradle:3.0.0-beta3' testCompile 'org.robolectric:robolectric:3.4.2' Test class that I …
android unit-testing testing android-testing robolectricI was able to access to the application context in Robolectric 2.x in this way but don't know how to …
java robolectricIn an activity, I started a new Intent with some random extra data: Intent newIntent = new Intent(this, UserActivity.class); …
android testing android-intent robolectricWhen will Robolectric be compatible with Android SDK 29? Did I upgraded too early by changing targetSdkVersion and compileSdkVersion to 29? When …
android robolectric android-10.0