You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error in unit test - MissingPluginException(No implementation found for method getApplicationDocumentsDirectory on channel plugins.flutter.io/path_provider)
#37
Open
medleykupps opened this issue
Sep 9, 2020
· 2 comments
My service's method contains a logging statement, FLog.info(text: 'message'); that results in the following error:
MissingPluginException(No implementation found for method getApplicationDocumentsDirectory on channel plugins.flutter.io/path_provider)
When I change the logging call to FLog.trace(text: 'message');, it works fine...guessing because it doesn't actually try and write a log entry.
Is there a way around this? Can I mock the FLog method calls? Or, do I need to create my own logging interface that calls FLog internally, and, then mock that interface in my unit tests?
The text was updated successfully, but these errors were encountered:
I'm unit testing a service that relies on FLog.
My service's method contains a logging statement,
FLog.info(text: 'message');
that results in the following error:When I change the logging call to
FLog.trace(text: 'message');
, it works fine...guessing because it doesn't actually try and write a log entry.Is there a way around this? Can I mock the FLog method calls? Or, do I need to create my own logging interface that calls FLog internally, and, then mock that interface in my unit tests?
The text was updated successfully, but these errors were encountered: