Closed KeroJohn97 closed 5 months ago
Hello @KeroJohn97 I don't have experience with the Integration Test. Let me do some more research and try with my package. Will get back to you later. Sorry.
I see. Thanks for the reply. I will switch to another localization for testing first. I hope the package becomes popular with more completed features. Peace.
Hi Channdara, I understand that testing might not have been included in the initial design and development of this package. However, I'm reaching out to seek your guidance on implementing a mock class for FlutterLocalization. My goal is to display translated text within my app during the integration testing period. I've attempted to use the Mockito package to generate a mock class, but I encountered an issue with the
init()
method. It doesn't assign values tosupportedLocales
andlocalizationsDelegates
, leading to the error: "'supportedLocales.isNotEmpty' is not true." I appreciate your understanding and any assistance you can provide. Thank you.