wiredashio / wiredash-sdk

Interactive user feedback tool for Flutter 🎉
https://pub.dev/packages/wiredash
Other
514 stars 66 forks source link

Mute Wiredash in widget tests #332

Closed passsy closed 9 months ago

passsy commented 9 months ago

Don't call FlutterError.onError unless it is an error that can be resolved by the developer.

This came up in a 3rd party app testing setup. Test failed because the ping after 5s after app start tried to read the device information, but no mock was setup. Wiredash then called onError with the MissingPluginException.

Technically it could be fixed by mocking the plugin, but that is completely out of scope of the test. Wiredash can print the error, but should not fail the test.