How to Unit Test code that is dependent on 3rd-Party-Package in Flutter?
问题 How can I test code in flutter, that is dependent on the path_provider plugin? When executing tests for code that is dependent on the path_provider plugin, I get the following error: MissingPluginException(No implementation found for method getStorageDirectory on channel plugins.flutter.io/path_provider) package:flutter/src/services/platform_channel.dart 319:7 MethodChannel.invokeMethod ===== asynchronous gap =========================== dart:async _asyncErrorWrapperHelper package: mypackage