Issue I have a simple Dart class that is using the package Dio in one of its methods. In the class’s corresponding test file, I’m trying to mock Dio by placing @GenerateMocks([Dio]) above the main method. I then ran dart
Continue readingTag: testing
Hilt Testing – Replace internal Hilt-Module in separate Android multi-module app
Issue I have an Android app where the codebase is split into 2 different modules: App and Domain Goal: I am attempting to use the Hilt provided testing functionality to replace a Domain internal dependency when creating App tests. In
Continue readingStop gradle build when a unit test fails
Issue I have found many posts on how to continue a gradle build when a unit test fails, however I cannot find any posts for how to stop for fail a build if a test fails. Is it possible to
Continue readingHow to setup new ConsentDebugSettings.Builder().addTestDeviceHashedId("DEVICE_ID")?
Issue I always used the following implementaion for testing Ads within my app: MobileAds.initialize(this) val testDeviceIds = listOf( "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", …. "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ) val configuration = RequestConfiguration .Builder() .setTestDeviceIds(testDeviceIds) .build() MobileAds.setRequestConfiguration(configuration) Recently I noticed new suggestion in the logs: Use new
Continue readingHow can I simulate poor internet connection when using flutter?
Issue I know that there is a way on android, but I am using ios devices. I am also using a real device for development because some app features like photos and location. It would be very much appreciated if
Continue readingLive Data Value was never set
Issue i’m new to kotlin android. I’m trying to learn testing, but get an error where it says live data value was never set, even when i use advanceUntilIdle. Here is my repository class UserRepository private constructor( private val userPreference:
Continue readingdart_test: how to execute `setUp` if a loop before `test` is used based on the data assigned in `setUp`?
Issue The problem is in this code: void main() { late List<int> data; setUp(() async { data = [11, 22, 33]; }); int counter = 0; for (final d in data) { // error test(‘data’, () { expect(d, data[counter++]); });
Continue readingHow to pass testing process on Play Console
Issue I have designed some watch faces and want to sell it on Google Play. I created a developer account on Play Console. I have some questions about internal testing, closed testing and open testing on Play Console. Is this
Continue readingIs it possible to do automated testing with detox outside of the target application?
Issue I have built a react-native application and am trying to build a few specific end-to-end tests on the android side. For this, I have setup detox. Unfortunately, to test properly, I need to see how the application responds when
Continue readingCannot Find AssetImage In BoxDecoration In Flutter Widget Tests
Issue I am trying to create widget splash screen that shows when the app loads and the native splash screen is shown. I created the splash screen and everything seems fine so i decide to create widget test for the
Continue reading