python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to construct unit tests combining Robolectric and AndroidX with Jetpack Compose?
Assumptions
Robolectric controls which Android version to emulate, so I need this
AndroidX has the test API for Jetpack Compose, so I need this as well
Background
I have experienced a lot of AppNotI...
Alix
Votes: 0
Answers: 0
Test cases to performClick for custom ClicklLstener
I have created one custom click listener like below:
abstract class SingleClickListener : View.OnClickListener {
private var lastTimeClicked: Long = 0
private val defaultInterval: Int = 1000
...
Maradiya Krupa
Votes: 0
Answers: 1
Why does ExceptionInInitializerError occur when invoking HtmlCompat in an Android unit test using Robolectric?
I am attempting to unit test a method that is part of my use case layer of an Android app. The method receives an XML RSS feed and returns it to the view model as GSON-parsed objects. The testing clas...
Flash103
Votes: 0
Answers: 1
How to test Android 32 with Roboelectric
My current Android application supports the following versions
android {
compileSdkVersion 32
buildToolsVersion "32.0.0"
defaultConfig {
applicationId "com.my.app"
minSdkVe...
Hector
Votes: 0
Answers: 1