After setting up gradle properly, when i add for example @RunWith(RobolectricTestRunner::class) at the top of my test class, Andtoid studio does not i ...
After setting up gradle properly, when i add for example @RunWith(RobolectricTestRunner::class) at the top of my test class, Andtoid studio does not i ...
I am using Robolectric library and the latest version of it v4.3.1 requires Java 9 to run. I am trying to point JRE on edit configurations but I am no ...
I have tried to test my code with robolectric. Problem is that it has duplicated References. e.g. I have used the gradel artifact app:dependencies ...
First off, I know that this question appears to be a duplicate. However, none of the other questions are recent enough to still work. I've tried it. ...
I have upgrade my Gradle plugin version from 2.3.3 to 3.2.1 and than my robolectric test start failing. So i upgrade the robolectric version to 4.0.2 ...
Updated to Android Studio 3.1 and its corresponding gradle. I'm getting a message when trying to sync "The SourceSet 'robolectric' is not recognized b ...
While I run JUnit tests, it throws the following error: java.lang.IllegalAccessError: tried to access field org.robolectric.annotation.Config$Builder. ...
I'm trying to use Robolectric to run unit tests but the Android Studio is not recognizing the class on: Details: And I'm importing dependency: ...
I use Room to play with SQLite. Everything is fine when the application runs and single-test will be played. All successfully. The problem is if I ...
I am trying to run a unit test like that: That is a Junit5 test with Android dependencies (i.e Looper.getMainLooper()) with Robolectric. I am usi ...
I have a problem with configuring Robolectric in my project. I am also using Kotlin, if it matters. Here is my build.gradle } } } When i ru ...
I just want to test that getting a String resource equals what I think it should equal. My issue seems to be that I have Realm in my project. I know t ...
I have implemented the MVP on my android application and am looking at creating test scripts to test basic behavior functionality. Long story short, i ...
I've just set up Roboelectric 3.2.2 with a new app and I have written my first simple test: I've followed all the set up and instructions here and ...
did someone faced similar problem? please help! my gradle has Not sure whether i should add any other libraries to make it work! ...
I have a android project that has multiple library modules and I am trying to test a specific package that contains all modules. I tried this command ...
I have the simple Test Case Unfortunately the runner hits manifestmerger issue java.lang.RuntimeException: org.altbeacon.beacon.BeaconManager$ ...
I have a well reported issue here: Mockito + Dexmaker on Android However the solution does not work. I am using Robolectric and even when I try set ...
I am trying to ShadowClass Crashlytics/Fabric so that Robotlectric 3 tests do not fail. What I have so far is this: The custom test runner that adds ...
I want to add robolectric tests to my project in intellij. I have tried to follow this tutorial but I cannot add "test" package under my main module ...