Top "Robolectric" questions

Robolectric is a unit testing framework that allows Android applications to be tested on the JVM in seconds without using an emulator or device.

Robolectric says "AndroidManifest.xml not found"

While trying to get Robolectric RC3 to work in Android Studio, I get Caused by: java.lang.RuntimeException: build/intermediates/…

android android-studio android-gradle-plugin robolectric
Does Robolectric support API level?

I have some Test which I would like to run with Robolectric, I use the 2.3-SNAPSHOT as my APP uses …

android robolectric
Robolectric with Gradle: Resources not found

I'm trying to run my Robolectric tests together with the new Gradle Android build system, but I'm stuck at accessing …

android gradle robolectric
How to access files from assets folder during tests execution?

How to access files from assets folder during unit tests execution? My project is build using Gradle, I use Robolectric …

android gradle robolectric android-assets
Android project with Robolectric and Gradle (Android studio)

I'm trying to use Robolectric in a project build with gradle inside the new Ide for android: Android studio, but …

android junit gradle android-studio robolectric
kotlin and ArgumentCaptor - IllegalStateException

I have a problem with capturing the Class argument via ArgumentCaptor. My test class looks like this: @RunWith(RobolectricGradleTestRunner::class) @…

android robolectric kotlin
Providing test data for SharedPreferences for Robolectric

Just started to use Robolectric and it seems to be pretty much what I need. However, I've hit a bit …

java android android-testing robolectric
Testing custom Views with Robolectric

I'm trying to run unit tests with Robolectric 2.1.1 and I cannot get it to inflate custom layouts (e.g. ViewPagerIndicator …

android robolectric
Testing SQLite database in Robolectric

I'm trying to test a simple SQLite database using Robolectric in my Android application. I'm putting in some values, but …

android sqlite robolectric
Android unit test case automation: Robolectric library vs Android Testing framework

Wondering which one is the better choice to write unit test cases for android apps and libraries: Using Robolectric library …

android unit-testing junit continuous-integration robolectric