robolectric
Robolectric fails to inflate layout file if an AdMob view is present, any workarounds?
This is a snippet from my Robolectric enabled JUnit test class : @Before public void setUp() throws Exception[详细]
2023-04-05 13:34 分类:问答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 when reading them back 0 rows are returned.[详细]
2023-04-03 03:43 分类:问答how do I get current activity with Robolectric?
Suppose I have an activity A that launches another activity B from within its onCreate() method, expecting for results.[详细]
2023-04-01 20:42 分类:问答How does exactly custom Shadow objects work in Robolectric?
If I write a custom Shadow for my Activity, and registering it with RobolectricTestRunner, wi开发者_如何学编程ll the framework intercept the Activity with my custom Shadow whenever it\'s started?[详细]
2023-03-31 16:53 分类:问答How to specify classpath ordering in Gradle
开发者_如何学编程I need to control the ordering of jars in the testRuntime configuration. I must make sure that robolectric-x.x.jar comes before android.jar, or else I get the dreaded RuntimeExceptio[详细]
2023-03-31 05:04 分类:问答How do I get Robolectric working with the Android-Release Archetype?
I am trying to get Robolectric to work with the Android-release-archetype located https://github.com/akquinet/android-archetypes/wiki/Android-release-archetype[详细]
2023-03-25 05:05 分类:问答How do I get access to resources in my test classes when using robolectric
I have made a text file of values that I want to use for testing in res/raw I want to use them in testing[详细]
2023-03-23 06:55 分类:问答Best way to run Robolectric tests on Android device
I have a Robolectric test project setup, but I\'d like to also run these tests on my device to check that I don\'t get bit by JVM vs Dalvik implementation differences.[详细]
2023-03-21 06:32 分类:问答Integrate Robolectric and JDave [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing th[详细]
2023-03-12 03:23 分类:问答Robolectric Issue with ProgressBar
I keep getting a RuntimeException from Robolectric when it tries to invoke an onCreate for an activity that has a ProgressBar. I\'ve localized the issue to this block in the layout xml file. As soon a[详细]
2023-03-12 02:12 分类:问答