Skip to content Skip to sidebar Skip to footer
Showing posts with the label Robolectric

Jacoco Doesn't Work With Robolectric Tests

I wanted to generate code coverage reports on my JUnit tests in my android project so I added the J… Read more Jacoco Doesn't Work With Robolectric Tests

Resources$notfoundexception When Running Roboelectric Test

I've just set up Roboelectric 3.2.2 with a new app and I have written my first simple test: @Ru… Read more Resources$notfoundexception When Running Roboelectric Test

Shadowing Getfilesdir() In Robolectric 3

I'd like to shadow Context.getFilesDir() in order to 'virtualize' the filesystem my ap… Read more Shadowing Getfilesdir() In Robolectric 3

Robolectric 3.0 Not Working With Appcompat 21+

After upgrading to AppCompat 21, a lot of our Robolectric tests fail. It looks like there is an iss… Read more Robolectric 3.0 Not Working With Appcompat 21+

Robolectrictestrunner's Helpertestrunner Having Trouble Invoking Jmockit?

I'm having problems running tests in IntelliJ using Robolectric and it looks like jMockit might… Read more Robolectrictestrunner's Helpertestrunner Having Trouble Invoking Jmockit?

Classcastexception Exception When Running Robolectric Test With Power Mock On Multiple Files

So I set up the power mock based on the reference guide here. It all seems to run perfectly fine wi… Read more Classcastexception Exception When Running Robolectric Test With Power Mock On Multiple Files

Simpletestcursor Robolectric 3.0-- Compilation Issue

I am trying to test the cursor in my app. But for the following import I get the error message-- ca… Read more Simpletestcursor Robolectric 3.0-- Compilation Issue

Sporadic Robolectric Test Failures When Running Inside Docker Container

I am trying to move our Android team onto a Cloud-based CI solution. Other departments within the c… Read more Sporadic Robolectric Test Failures When Running Inside Docker Container